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
d055f738
Commit
d055f738
authored
Dec 18, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add zmq op to travis
parent
8ec145ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
.travis.yml
.travis.yml
+1
-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 @
d055f738
...
@@ -14,6 +14,7 @@ addons:
...
@@ -14,6 +14,7 @@ addons:
-
pandoc
-
pandoc
-
libprotobuf-dev
-
libprotobuf-dev
-
protobuf-compiler
-
protobuf-compiler
-
libzmqpp-dev
matrix
:
matrix
:
fast_finish
:
true
fast_finish
:
true
...
...
tensorpack/user_ops/zmq_recv_op.cc
View file @
d055f738
...
@@ -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 @
d055f738
...
@@ -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