Update utils.py ()

Fix
I0725 16:27:55.483268 10662 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify  'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6.
pull/3013/head
Mikhail Scherbina 2023-10-10 15:06:47 +03:00 committed by GitHub
parent f5d99d0c74
commit cb9392e60a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

Diff Content Not Available