「tensorflow」 Variable was uninitialized
Initialize:
1 | import tensorflow as tf |
Work:
1 | model = tf.saved_model.load(dir) |
1 | model = tf.saved_model.load(dir) |
Failed:
1 | model = tf.saved_model.load(dir).signatures['serving_default'] |
1 | tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable conv5_block17_0_bn/gamma_96932 from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/conv5_block17_0_bn/gamma_96932/N10tensorflow3VarE does not exist. |