From 6ceacd2bb1e017ca4e75a5c1f4fc6835cc6ec6e0 Mon Sep 17 00:00:00 2001 From: Jonathan L Long Date: Mon, 10 Mar 2014 20:06:18 -0700 Subject: [PATCH] Add a pass-through Python wrapper of _caffe.CaffeNet 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 | 2 +- python/caffe/pycaffe.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 python/caffe/pycaffe.py diff --git a/python/caffe/__init__.py b/python/caffe/__init__.py index e8a8db7..b906d3e 100644 --- a/python/caffe/__init__.py +++ b/python/caffe/__init__.py @@ -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 index 0000000..f7a266b --- /dev/null +++ b/python/caffe/pycaffe.py @@ -0,0 +1,4 @@ +from ._caffe import CaffeNet + +class Net(CaffeNet): + pass -- 2.7.4