joschu / cgt

Computation Graph Toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with shared scalar

dementrock opened this issue · comments

cgt.shared(0).op.set_value(1) # Fails
cgt.shared(0.0).op.set_value(np.float32(1)) # Fails

Works for me, with both python and native backends. What happens on your machine?

Resolved. Wasn't using the latest master.