model.predict_on_batch(training_data[‘inputs’]).round(1)
gives error
AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'round'
I have tried restarting the kernel and also updated TensorFlow to v2.1.0. I also have tried adding eager execution.
But,as the method is automatic in TF2,it throws up another error.
Hi Manav,
Thanks for reaching out to us.
In order to use round on tensors of TensorFlow 2.1, we need to get their numpy arrays:
model.predict_on_batch(training_data['inputs']).numpy().round(1)
Best,
The 365 Team