java icon indicating copy to clipboard operation
java copied to clipboard

tensorflow-java tensor operand[T] need some feature could implicit convert to Breeze DenseMatrix like numpy in python?

Open mullerhai opened this issue 3 years ago • 1 comments

Hi: In tensorflow-java ,some matrix operate methond is not support ,so need use breeze DenseMatrix ,but can not implicit convert to like numpy in python . Now we need to make tensorflow-java environment suitable with scala or java with the Matrix or Vector Operation.

mullerhai avatar Jun 03 '22 08:06 mullerhai

You should be able to wrap a Breeze DenseMatrix around the array you get out of a tensor. If you want it to be extremely efficient then that will be tricky as Tensors are stored off heap and Breeze matricies are on heap (as far as I can tell).

Craigacp avatar Jun 03 '22 13:06 Craigacp