Community

Item Assignment for...
 
Share:

Item Assignment for Variable on TensorFlow  

  RSS

NaN
 NaN
(@nan)
New Member
Joined: 3 months ago
Posts: 2
16/08/2019 4:16 am  

Hi,

I try to code custom node with eager mode of tensor flow. It might not been on TensorFlow matter, the error I met is;
"'ResourceVariable' object does not support item assignment"

On code of;

<a href=" removed link "> removed link

I also tried to convert from tf.Variable to list using list() and permute after that, but list() is not compatible with TensorFlow. DOes anyone guide me to fix the issue?

Best,

NaN


Quote
Topic Tags
NaN
 NaN
(@nan)
New Member
Joined: 3 months ago
Posts: 2
16/08/2019 4:20 am  

Ups, I am sorry for linking to my code, directly.

for index_a in range(NUM_INPUT - 1):
  for index_b in range(NUM_HIDDEN - 1, 0, -1):
    self.fw_x[index_a, index_b] = self.fw_x[index_a, index_b - 1]

The self.fw_x is a Variable.

Best,
NaN

ReplyQuote
Mo Rebaie
(@mo-rebaie)
Estimable Member
Joined: 8 months ago
Posts: 106
07/09/2019 6:13 pm  

Hello @nan,

I recommend you to post your question at Stack Over Flow to receive quick and accurate answers with following up for any additional issues.

 

M.R


ReplyQuote
Share:

We use cookies to collect information about our website and how users interact with it. We’ll use this information solely to improve the site. You are agreeing to consent to our use of cookies if you click ‘OK’. All information we collect using cookies will be subject to and protected by our Privacy Policy, which you can view here.

OK
  
Working

Please Login or Register