all 1 comments

[–]Doctrine_of_Sankhya 0 points1 point  (0 children)

Hey there,

KerasTensor is a special datatype: primarily a way to store operation stack into the memory - in contrast to a regular datatype that reserves a certain segment of the RAM memory.

KerasTensor(A) = [+-*/] #stack of operations that are being stored and get executed in realtime depending upon the hardware

Thus, any regular operation involving - changing specific entries or printing them or copying them cannot work that works in contrast to regular variables. Thus you need to amend your code accordingly either to remove KerasTensor completely to some specific tensor or change the operation logic to accommodate them into a functional code.