AMSGrad-Tensorflow
AMSGrad-Tensorflow copied to clipboard
TypeError: Input 'y' of 'Mul' Op has type resource that does not match type float32 of argument 'x'.
- Tensorflow 1.12.0
- CUDA 9.0
File "AMSGrad.py", line 93, in _resource_apply_dense
m_t = state_ops.assign(m, beta1_t * m + m_scaled_g_values, use_locking=self._use_locking)
File "/home/user/.envs/default/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py", line 866, in binary_op_wrapper
return func(x, y, name=name)
File "/home/user/.envs/default/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py", line 1131, in _mul_dispatch
return gen_math_ops.mul(x, y, name=name)
File "/home/user/.envs/default/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py", line 5042, in mul
"Mul", x=x, y=y, name=name)
File "/home/user/.envs/default/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 546, in _apply_op_helper
inferred_from[input_arg.type_attr]))
TypeError: Input 'y' of 'Mul' Op has type resource that does not match type float32 of argument 'x'.
Same with tensorflow 1.13.0-rc2 and CUDA 10.0.
EDIT: and also tensorflow 1.13.1.