else:
print(
"{} second return value of inputs should be a list or a tensor but is {}".
format(self._dataset.name, type(targets)))
return
log_io(inputs)
After Change
train_phase=True,
l2_penalty=self._args["regularizations"]["l2"])
if len(predictions) != len(targets):
print(("{}.get 2nd return value and {}.inputs 2nd return "
"value must have the same cardinality but got: {} vs {}"
).format(self._model.name, self._dataset.name,