Skip to content
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

Potentially outdated tutorial: OnnxTensorflowImport.ipynb #73

Open
jsigee87 opened this issue Sep 30, 2018 · 1 comment
Open

Potentially outdated tutorial: OnnxTensorflowImport.ipynb #73

jsigee87 opened this issue Sep 30, 2018 · 1 comment
Assignees

Comments

@jsigee87
Copy link

In step 3, cell 2, either my model loading is failing silently, or the documentation is outdated. When I run this code, my tf_rep is a different object, and has different attributes. Below is an example script followed by the terminal output.

Script:

import onnx
from onnx_tf.backend import prepare

onnx_path = 'tests/testmodel'

model = onnx.load(onnx_path + '.onnx')
tf_rep = prepare(model)
print(type(tf_rep))
print(dir(tf_rep))

Output:

$ python test_script.py
/home/johnsigmon/programming/ml-sandbox/.env/lib/python3.5/site-packages/onnx-tensorflow/onnx_tf/common/handler_helper.py:71: UserWarning: Fail to get since_version of Expand in domain `` with max_inclusive_version=7. Set to 1.
  handler.ONNX_OP, handler.DOMAIN, version))
/home/johnsigmon/programming/ml-sandbox/.env/lib/python3.5/site-packages/onnx-tensorflow/onnx_tf/common/handler_helper.py:74: UserWarning: Unknown op ConstantLike in domain `ai.onnx`.
  handler.ONNX_OP, handler.DOMAIN or "ai.onnx"))
2018-09-30 12:05:58.367732: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
<class 'onnx_tf.backend_rep.TensorflowRep'>
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_graph', '_inputs', '_outputs', '_tensor_dict', 'export_graph', 'graph', 'inputs', 'outputs', 'run', 'tensor_dict']
@marcocaccin
Copy link

same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants