Skip to content

Commit 6d2fe84

Browse files
committed
Rename caffepb.py to caffe_pb2.py.
This is to avoid the exception "Descriptors should not be created directly, but only retrieved from their parent."
1 parent 3887eac commit 6d2fe84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

kaffe/caffe/resolver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def import_caffe(self):
1414
self.caffe = caffe
1515
except ImportError:
1616
# Fall back to the protobuf implementation
17-
from . import caffepb
18-
self.caffepb = caffepb
17+
from . import caffe_pb2
18+
self.caffepb = caffe_pb2
1919
show_fallback_warning()
2020
if self.caffe:
2121
# Use the protobuf code from the imported distribution.

0 commit comments

Comments
 (0)