joschu / cgt

Computation Graph Toolkit
Other
628 stars 87 forks source link

Issues with shared scalar #57

Closed dementrock closed 8 years ago

dementrock commented 8 years ago
cgt.shared(0).op.set_value(1) # Fails
cgt.shared(0.0).op.set_value(np.float32(1)) # Fails
joschu commented 8 years ago

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

dementrock commented 8 years ago

Resolved. Wasn't using the latest master.