Commit 8e8e0b3b authored by Yuxin Wu's avatar Yuxin Wu

Merge branch 'test-travis'

parents 8ec145ee fd38d7d6
...@@ -20,10 +20,10 @@ matrix: ...@@ -20,10 +20,10 @@ matrix:
include: include:
- os: linux - os: linux
python: 2.7 python: 2.7
env: TF_VERSION=1.4.0rc0 TF_TYPE=release env: TF_VERSION=1.4.1 TF_TYPE=release
- os: linux - os: linux
python: 3.5 python: 3.5
env: TF_VERSION=1.4.0rc0 TF_TYPE=release env: TF_VERSION=1.4.1 TF_TYPE=release
- os: linux - os: linux
python: 2.7 python: 2.7
env: TF_VERSION=1.head TF_TYPE=nightly env: TF_VERSION=1.head TF_TYPE=nightly
......
...@@ -27,10 +27,14 @@ setup( ...@@ -27,10 +27,14 @@ setup(
version=__version__, version=__version__,
description='Neural Network Toolbox on TensorFlow', description='Neural Network Toolbox on TensorFlow',
long_description=long_description, long_description=long_description,
install_requires=req, install_requires=req,
tests_require=['flake8', 'scikit-image'], tests_require=['flake8', 'scikit-image'],
extras_require={ extras_require={
'all': ['pillow', 'scipy', 'h5py', 'lmdb>=0.92', 'matplotlib', 'all': ['pillow', 'scipy', 'h5py', 'lmdb>=0.92', 'matplotlib',
'scikit-learn', "tornado; python_version < '3.0'"] 'scikit-learn', "tornado; python_version < '3.0'"]
}, },
include_package_data=True,
package_data={'tensorpack': ['user_ops/Makefile', 'user_ops/*.cc', 'user_ops/*.h']},
) )
...@@ -71,7 +71,8 @@ class ZMQRecvOp: public AsyncOpKernel { ...@@ -71,7 +71,8 @@ class ZMQRecvOp: public AsyncOpKernel {
TensorShape& shape = tensors[i].shape; TensorShape& shape = tensors[i].shape;
OP_REQUIRES_OK_ASYNC(ctx, ctx->allocate_output(i, shape, &output), done); OP_REQUIRES_OK_ASYNC(ctx, ctx->allocate_output(i, shape, &output), done);
// reinterpret cast and then memcpy // reinterpret cast and then memcpy
auto ptr = output->bit_casted_shaped<char, 1>({shape.num_elements()}).data(); auto ptr = output->bit_casted_shaped<char, 1>(
{shape.num_elements() * DataTypeSize(recv_dtype)}).data();
memcpy(ptr, tensors[i].buf, tensors[i].buf_size); memcpy(ptr, tensors[i].buf, tensors[i].buf_size);
ctx->set_output(i, *output); ctx->set_output(i, *output);
} }
......
...@@ -12,3 +12,5 @@ python -c 'from tensorpack.dataflow.imgaug import transform' ...@@ -12,3 +12,5 @@ python -c 'from tensorpack.dataflow.imgaug import transform'
python -m unittest discover -v python -m unittest discover -v
# python -m tensorpack.models._test # python -m tensorpack.models._test
# segfault for no reason (https://travis-ci.org/ppwwyyxx/tensorpack/jobs/217702985) # segfault for no reason (https://travis-ci.org/ppwwyyxx/tensorpack/jobs/217702985)
# python ../tensorpack/user_ops/test-recv-op.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment