Andy
Andy

Reputation: 53

How to change the value of variables each iteration after the graph is built?

I want to change the value of the variables manually in each iteration in Tensorflow, but i don't want to change the gradient computation. How to do it?

Upvotes: 2

Views: 388

Answers (1)

chris
chris

Reputation: 1893

sess.run(variable.assign(value))

Upvotes: 1

Related Questions