I'm trying to run the test, but I run into errors. I am using tf1.2 because on tf2 it didn't work
2020-05-23 18:16:05.559396: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
Traceback (most recent call last):
File "test.py", line 48, in <module>
main(parse_arguments(sys.argv[1:]))
File "test.py", line 17, in main
saver.restore(sess,tf.train.latest_checkpoint('./model'))
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1548, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 789, in run
run_metadata_ptr)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 997, in _run
feed_dict_string, options, run_metadata)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1132, in _do_run
target_list, options, run_metadata)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1152, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'MaxPoolWithArgmax' with these attrs. Registered devices: [CPU], Registered kernels:
<no registered kernels>
[[Node: pool1 = MaxPoolWithArgmax[T=DT_FLOAT, Targmax=DT_INT64, ksize=[1, 2, 2, 1], padding="SAME", strides=[1, 2, 2, 1]](conv1_2)]]
Caused by op u'pool1', defined at:
File "test.py", line 48, in <module>
main(parse_arguments(sys.argv[1:]))
File "test.py", line 16, in main
saver = tf.train.import_meta_graph('./meta_graph/my-model.meta')
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1686, in import_meta_graph
**kwargs)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/meta_graph.py", line 504, in import_scoped_meta_graph
producer_op_list=producer_op_list)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 311, in import_graph_def
op_def=op_def)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2506, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/r06t/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1269, in __init__
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'MaxPoolWithArgmax' with these attrs. Registered devices: [CPU], Registered kernels:
<no registered kernels>
[[Node: pool1 = MaxPoolWithArgmax[T=DT_FLOAT, Targmax=DT_INT64, ksize=[1, 2, 2, 1], padding="SAME", strides=[1, 2, 2, 1]](conv1_2)]]
I'm trying to run the test, but I run into errors. I am using tf1.2 because on tf2 it didn't work
The error I get is this:
What am I doing wrong?