ngraph-bridge icon indicating copy to clipboard operation
ngraph-bridge copied to clipboard

InternalError: Caught exception while executing nGraph computation: Second argument of index must be an integer

Open letalvoj opened this issue 6 years ago • 1 comments

The full notebooks and error logs can be found in this gist.

Error

~/Workspace/Personal/ngraphtf/venv/lib/python3.7/site-packages/tensorflow/python/client/session.py in __call__(self, *args, **kwargs)
   1456         ret = tf_session.TF_SessionRunCallable(self._session._session,
   1457                                                self._handle, args,
-> 1458                                                run_metadata_ptr)
   1459         if run_metadata:
   1460           proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

InternalError: Caught exception while executing nGraph computation: Second argument of index must be an integer

	 [[{{node ngraph_cluster_17}}]]

Snippet

session = tf.Session(config=config_ngraph_enabled)
tf.keras.backend.set_session(session)

model = tf.keras.models.Sequential([
  tf.keras.layers.Flatten(input_shape=(28, 28)),
  tf.keras.layers.Dense(128, activation='relu'),
  tf.keras.layers.Dropout(0.2),
  tf.keras.layers.Dense(10, activation='softmax')
])

Packages

Package                  Version
------------------------ -------
ngraph-core              0.26.0 
ngraph-tensorflow-bridge 0.18.0 
plaidml                  0.6.4  
tensorflow               1.14.0 

System

• MacOS 10.14.6 (18G103)

letalvoj avatar Nov 24 '19 18:11 letalvoj

Might be related to https://github.com/tensorflow/ngraph-bridge/issues/290 yet the error is more similar to https://github.com/tensorflow/ngraph-bridge/issues/129.

letalvoj avatar Nov 25 '19 08:11 letalvoj