models icon indicating copy to clipboard operation
models copied to clipboard

No OpKernel was registered to support Op 'Slice' with these attrs

Open wanghuijing opened this issue 8 years ago • 6 comments

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)]]

wanghuijing avatar May 09 '18 01:05 wanghuijing

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

tensorflowbutler avatar May 10 '18 01:05 tensorflowbutler

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

kismeter avatar May 10 '18 07:05 kismeter

Can you try to construct your graph with int32 and see if that resolves the issue?

robieta avatar May 14 '18 16:05 robieta

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

robieta avatar Jun 03 '18 19:06 robieta

Did you resolved this ? Is dependency of tf will support INT64 ?

PrinceP avatar Jun 07 '18 02:06 PrinceP

Having same issue. Please post a solution

helloItzMe avatar Sep 06 '19 07:09 helloItzMe