how to convert Int64 NDArray to float32 NDArray? #1032
Answered
by
zachgk
kameronren
asked this question in
Q&A
-
how to convert Int64 NDArray to float32 NDArray?
cls_pred is a Int64 NDArray; cls_label is a float32 NDArray. Now I want to get the 'eq' function results, but a Int64 NDArray can not to compare with a float32 NDArray。 |
Beta Was this translation helpful? Give feedback.
Answered by
zachgk
Jun 17, 2021
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kameronren
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
array.toType
(Javadoc).