Modified the Scalar shared variable to use a 0-d tensor as the backend. This
makes it play nicer with the new rule that update values must have the same type
as their shared vars.
An alternative fix to several tests would have been to implement a
Tensor->Scalar cast, but I didn't do that because it's nice to just use Tensors.
正在显示
请
注册
或者
登录
后发表评论