You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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']
The text was updated successfully, but these errors were encountered:
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:
Output:
The text was updated successfully, but these errors were encountered: