MNasNet-Keras-Tensorflow icon indicating copy to clipboard operation
MNasNet-Keras-Tensorflow copied to clipboard

inference in eager mode

Open MichaelGou1105 opened this issue 5 years ago • 1 comments

how to predict in inference with eager mode?

i find model file without .meta. so how to predict it?

MichaelGou1105 avatar Apr 01 '19 06:04 MichaelGou1105

and when i try to use "model(x, training=False)", i find the same result with different inputs.

tf.Tensor(
[[ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]
 [ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]
 [ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]
 ...
 [ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]
 [ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]
 [ 0.0113026   0.01824222 -0.04097308 ... -0.09739988  0.02242501
   0.00669069]], shape=(128, 10), dtype=float32)

MichaelGou1105 avatar Apr 01 '19 06:04 MichaelGou1105