MCPcopy
hub / github.com/tensorflow/models / predict

Function predict

official/projects/movinet/tools/export_saved_model.py:174–176  ·  view source on GitHub ↗
(inputs)

Source from the content-addressed store, hash-verified

172
173 # Create a function to explicitly set the names of the outputs
174 def predict(inputs):
175 outputs, states = model(inputs)
176 return {**states, 'logits': outputs}
177
178 specs = {
179 name: tf.TensorSpec(spec.shape, name=name, dtype=spec.dtype)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected