Commit d64a3943 by Ting PAN

fix the potential crash of DragonBoard

1 parent 53d5742d
...@@ -79,7 +79,7 @@ DECLARE_TYPED_REGISTRY(TensorFetcherRegistry, TypeId, TensorFetcherBase); ...@@ -79,7 +79,7 @@ DECLARE_TYPED_REGISTRY(TensorFetcherRegistry, TypeId, TensorFetcherBase);
#define REGISTER_TENSOR_FETCHER(type, ...) \ #define REGISTER_TENSOR_FETCHER(type, ...) \
REGISTER_TYPED_CLASS(TensorFetcherRegistry, type, __VA_ARGS__) REGISTER_TYPED_CLASS(TensorFetcherRegistry, type, __VA_ARGS__)
inline TensorFetcherBase* createFetcher(TypeId type) { inline TensorFetcherBase* CreateFetcher(TypeId type) {
return TensorFetcherRegistry()->Create(type); return TensorFetcherRegistry()->Create(type);
} }
......
...@@ -23,7 +23,7 @@ class Tensor(object): ...@@ -23,7 +23,7 @@ class Tensor(object):
self.name = name self.name = name
self.shape = shape self.shape = shape
# ------------------------ Properies ------------------------ # ------------------------ Properties ------------------------
@property @property
def expressions(self): def expressions(self):
......
...@@ -79,4 +79,4 @@ class DragonBoard(Process): ...@@ -79,4 +79,4 @@ class DragonBoard(Process):
return make_response(jsonify(sample_scalar)) return make_response(jsonify(sample_scalar))
else: return make_response(jsonify(sclar)) else: return make_response(jsonify(sclar))
app.run(host='0.0.0.0', port=self.config['port']) app.run(host='0.0.0.0', port=self.config['port'], threaded=True)
numpy==1.12.1 numpy
six==1.10.0 six
protobuf==3.3.0 protobuf
lmdb==0.93 lmdb
opencv-python==3.1.0 opencv-python
Pillow==4.1.1 Pillow
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
[*Win64-VS2015*](https://pan.baidu.com/s/1c2eX6lq) (OpenBLAS / Protobuf2.6 for VS2015 / CUDNN v7 / Microsoft MPI) [*Win64-VS2015*](https://pan.baidu.com/s/1c2eX6lq) (OpenBLAS / Protobuf2.6 for VS2015 / CUDNN v7 / Microsoft MPI)
[*Linux64*](https://pan.baidu.com/s/1qXPEOWG) (OpenMPI) [*Linux64*](https://pan.baidu.com/s/1c2ChKHy) (OpenMPI)
For Windows, ``python27/35/36.lib`` should be copied to ``Dragon/3rdparty/lib``, it depends on the version of Python. For Windows, ``python27/35/36.lib`` should be copied to ``Dragon/3rdparty/lib``, it depends on the version of Python.
...@@ -73,12 +73,12 @@ ...@@ -73,12 +73,12 @@
- Run 3rdparty/setup_mpi.sh - Run 3rdparty/setup_mpi.sh
```Shell ```Shell
./setup_mpi.sh bash ./setup_mpi.sh
``` ```
- Install - Install
```Shell ```Shell
sudo cp openmpi/install/bin/mpirun /usr/bin sudo cp 3rdparty/openmpi/install/bin/mpirun /usr/bin
``` ```
#### Windows: #### Windows:
- We use Microsoft MPI which can perfectly run at lastest Windows10 - We use Microsoft MPI which can perfectly run at lastest Windows10
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!