No OpKernel was registered to support Op 'Slice' with these attrs
I have use frozen_inference_graph.pb and libtensorflow_inference-new.so in android demo,but there is error when run model.How to fix it?Here is the informations.
05-08 08:58:07.617 27942 27942 E TensorFlowInferenceInterface: Failed to run TensorFlow inference with inputs:[ImageTensor:0], outputs:[SemanticPredictions:0] 05-08 08:58:07.617 27942 27942 W System.err: java.lang.IllegalArgumentException: No OpKernel was registered to support Op 'Slice' with these attrs. Registered devices: [CPU], Registered kernels: 05-08 08:58:07.617 27942 27942 W System.err: device='CPU'; T in [DT_BFLOAT16] 05-08 08:58:07.617 27942 27942 W System.err: device='CPU'; T in [DT_BOOL] 05-08 08:58:07.617 27942 27942 W System.err: device='CPU'; T in [DT_FLOAT] 05-08 08:58:07.617 27942 27942 W System.err: device='CPU'; T in [DT_INT32] 05-08 08:58:07.617 27942 27942 W System.err: [[Node: SemanticPredictions = Slice[Index=DT_INT32, T=DT_INT64](ArgMax, SemanticPredictions/begin, SemanticPredictions/size)]]
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
I believe tensorflow mobile has no support for INT64 currently, from the logs, we can see that only INT32, FLOAT, BOOL,BFLOAT16 is registed, no INT64
Can you try to construct your graph with int32 and see if that resolves the issue?
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!
Did you resolved this ? Is dependency of tf will support INT64 ?
Having same issue. Please post a solution