AdaBound-Tensorflow icon indicating copy to clipboard operation
AdaBound-Tensorflow copied to clipboard

x and y must have the same dtype, got tf.float32 != tf.resource

Open Chuong98CC opened this issue 6 years ago • 7 comments

Version: Tensorflow 1.12 Stable. When I run the code, it appears the error:

x and y must have the same dtype, got tf.float32 != tf.resource in "AdaBound.py", line 132, in _resource_apply_dense final_lr = self._final_lr * lr_t / base_lr_t

Chuong98CC avatar Mar 06 '19 01:03 Chuong98CC

+1 same issue here, also tf 1.12

Jasonnor avatar Mar 06 '19 07:03 Jasonnor

+1 same issue here, tf 1.13.0-rc2

fastalgo avatar Mar 09 '19 06:03 fastalgo

Dear author, which tf version did you use? I just want to reproduce your results.

fastalgo avatar Mar 11 '19 04:03 fastalgo

I tested in tf 1.8. I will fix it as soon as possible

taki0112 avatar Mar 11 '19 06:03 taki0112

I managed to fix by removing all .handle calls in that function using tf 1.10

joeyearsley avatar Mar 11 '19 15:03 joeyearsley

The current version works for me. tf 1.12.0 on v100 GPUs

fastalgo avatar Mar 22 '19 21:03 fastalgo

fix it by @huyu398 I merged it

taki0112 avatar Apr 18 '19 06:04 taki0112