Add a pass-through Python wrapper of _caffe.CaffeNet
authorJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 11 Mar 2014 03:06:18 +0000 (20:06 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Thu, 13 Mar 2014 18:15:57 +0000 (11:15 -0700)
This commit restores caffe.pycaffe as Python code that wraps
caffe._caffe. It also renames caffe.CaffeNet as the less-redundant
caffe.Net.

python/caffe/__init__.py
python/caffe/pycaffe.py [new file with mode: 0644]

index e8a8db7c310741f9327de7867983281eae221f0f..b906d3e6ae97ac28d4286ea4f98f8032cb7a350f 100644 (file)
@@ -1 +1 @@
-from ._caffe import *
+from .pycaffe import Net
diff --git a/python/caffe/pycaffe.py b/python/caffe/pycaffe.py
new file mode 100644 (file)
index 0000000..f7a266b
--- /dev/null
@@ -0,0 +1,4 @@
+from ._caffe import CaffeNet
+
+class Net(CaffeNet):
+    pass