MCPcopy Create free account
hub / github.com/tensorflow/models / build_inputs

Method build_inputs

official/modeling/multitask/test_utils.py:122–123  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

120 return [tf_keras.metrics.Accuracy(name="bar_acc")]
121
122 def build_inputs(self, params):
123 return mock_data("bar")
124
125 def build_losses(self, labels, model_outputs, aux_losses=None) -> tf.Tensor:
126 loss = tf_keras.losses.mean_squared_error(labels, model_outputs)

Callers

nothing calls this directly

Calls 1

mock_dataFunction · 0.85

Tested by

no test coverage detected