tensorflow / tensorflow/models
TypeError: x and y must have the same dtype, got tf.float32 != tf.float64
Open
@ofirnachum is already working on this.
Since Jun 19, 2020.
models:research
type:support
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
I got the error when running the code of https://github.com/tensorflow/models/tree/master/research/efficient-hrl
on ubuntu 18.04 python 3.6 tensorflow 1.15 and other requirements at latest version.
When running
python scripts/local_train.py test1 hiro_orig ant_maze base_uvf suite
I got the following errors:
Traceback (most recent call last):
File "./run_train.py", line 49, in <module>
tf.app.run()
…
File "/root/anaconda3/envs/hrl/lib/python3.7/site-packages/tensorflow_core/python/ops/math_ops.py", line 997, in _truediv_python3
(x_dtype, y_dtype))
TypeError: x and y must have the same dtype, got tf.float32 != tf.float64
In call to configurable 'train_uvf' (<function train_uvf at 0x7f0b2e5ef320>)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.