Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
8e8e0b3b
Commit
8e8e0b3b
authored
Dec 18, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test-travis'
parents
8ec145ee
fd38d7d6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
.travis.yml
.travis.yml
+2
-2
setup.py
setup.py
+4
-0
tensorpack/user_ops/zmq_recv_op.cc
tensorpack/user_ops/zmq_recv_op.cc
+2
-1
tests/run-tests.sh
tests/run-tests.sh
+2
-0
No files found.
.travis.yml
View file @
8e8e0b3b
...
@@ -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
...
...
setup.py
View file @
8e8e0b3b
...
@@ -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'
]},
)
)
tensorpack/user_ops/zmq_recv_op.cc
View file @
8e8e0b3b
...
@@ -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
);
}
}
...
...
tests/run-tests.sh
View file @
8e8e0b3b
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment