-
Notifications
You must be signed in to change notification settings - Fork 0
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
[POC PYTHON API] Implement read_network #21
[POC PYTHON API] Implement read_network #21
Conversation
@jiwaszki Can you please review this PR? It seems I have no permissions in this repo to add you to the reviewers. |
6bc6cc0
to
d1d555e
Compare
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.
Looks good!
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.
Only one small code style change
array = np.fromfile(path_to_bin_file,dtype=np.uint8) | ||
tensor_desc = TensorDesc("U8", array.shape, "C") | ||
return BlobWrapper(tensor_desc,array) | ||
|
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.
New line here
383db25
to
2d973d1
Compare
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.
Please, add the next test which checks read network from buffer:
ie = IECore()
with open(test_net_bin, 'rb') as f:
bin = f.read()
with open(model_path()[0], 'rb') as f:
xml = f.read()
net = ie.read_network(model=xml, weights=bin)
assert isinstance(net, IENetwork)
Looks like it'll fail.
847b98b
to
71c1b53
Compare
49b94f0
to
942ef21
Compare
942ef21
to
74a17f1
Compare
…d_network [POC PYTHON API] Implement read_network
Tickets: