-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add travis test for graph edges #49
Conversation
@@ -29,6 +29,8 @@ def reorganize_inout(json_obj, key): | |||
|
|||
|
|||
def add_edges(json_obj): | |||
# TODO(daming-lu): should try to de-duplicate node's out-edge | |||
# Currently it is counted twice: 1 as out-edge, 1 as in-edge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个会根据前端的需要进行改进,先看看前端是怎么渲染的吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tests.sh
Outdated
sudo pip install google | ||
sudo pip install protobuf | ||
sudo apt-get install protobuf-compiler libprotoc-dev | ||
sudo pip install onnx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要安装onnx,但是需要安装protobuf,而且最好指定一下版本,我用的3.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,谢谢,我试试
server/build.sh
Outdated
ls $pb_file | ||
echo '$$CORE_PATH' | ||
else | ||
echo 'no!!' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方可以
exit 1
让travis报错
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搞定,因为我们把protoc搞定了,所以不用这一步了。
server/visualdl/graph_test.py
Outdated
json_obj = json.loads(json_str) | ||
# 286 edges + 143 nodes (out-edge of each node is counted twice) | ||
self.assertEqual(len(json_obj['edges']), 286 + 143) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check several nodes whether they are marked as the right type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Add test for graph edges * add new line * add google protobuf * add onnx to travis * install protoc and move installs to tests.sh * tune protoc * try to install onnx * onnx always fails on travis, try script from onnx github * install protobuf 3.1.0 but not onnx * in the right dir * tune path * should work * put onnx_pb2 there and it should work * what if remove onnx_pb2.py * cp compiled onnx_pb2 to the right place * debug * protoc * install protoc * chown * test * added protc, should work * typo * does it exist? * hmmmm * try dropbox * test 1 * now it should work * done * make tests more thorough
* Add test for graph edges * add new line * add google protobuf * add onnx to travis * install protoc and move installs to tests.sh * tune protoc * try to install onnx * onnx always fails on travis, try script from onnx github * install protobuf 3.1.0 but not onnx * in the right dir * tune path * should work * put onnx_pb2 there and it should work * what if remove onnx_pb2.py * cp compiled onnx_pb2 to the right place * debug * protoc * install protoc * chown * test * added protc, should work * typo * does it exist? * hmmmm * try dropbox * test 1 * now it should work * done * make tests more thorough
No description provided.