TypeError: Input 'y' of 'Sub' Op has type int64 #1

Open
opened 2020-09-15 05:35:19 +00:00 by cctv888 · 5 comments
cctv888 commented 2020-09-15 05:35:19 +00:00 (Migrated from github.com)

I use the tensorflow2.3 version, and it has an error in this train.py file
TypeError: Input 'y' of 'Sub' Op has type int64 that does not match type float32 of argument 'x'.

I use the tensorflow2.3 version, and it has an error in this train.py file TypeError: Input 'y' of 'Sub' Op has type int64 that does not match type float32 of argument 'x'.
cctv888 commented 2020-09-16 02:50:54 +00:00 (Migrated from github.com)

normalized_error = (y_pred - y_true) / avg_winners
This code reports an error
TypeError: Input 'y' of 'Sub' Op has type int64 that does not match type float32 of argument 'x'.

normalized_error = (y_pred - y_true) / avg_winners This code reports an error TypeError: Input 'y' of 'Sub' Op has type int64 that does not match type float32 of argument 'x'.
cctv888 commented 2020-09-17 08:06:06 +00:00 (Migrated from github.com)

I'm very interested in this research, but train.py doesn't work.

I'm very interested in this research, but train.py doesn't work.
xseth commented 2020-09-20 19:01:45 +00:00 (Migrated from github.com)

Same issue with Tensorflow 2.3
I am unable to install tensorflow version 2.0

Same issue with Tensorflow 2.3 I am unable to install tensorflow version 2.0
xseth commented 2020-09-26 06:58:30 +00:00 (Migrated from github.com)

@cctv888 it's work for me now with python3.6 and tensorflow 2.0.0a0

@cctv888 it's work for me now with python3.6 and tensorflow 2.0.0a0
sitegui commented 2020-09-26 08:56:34 +00:00 (Migrated from github.com)

Hi @cctv888 ,

I'm using miniconda (https://docs.conda.io/en/latest/miniconda.html) and you should be able to install all the dependencies in the exact same version I've used for this project with:

conda env create -f environment.yaml
conda activate cent-patates

@xseth you can see in the environment.yaml file that I've used Python 3.7.3 and Tensorflow 2.0.0a0. Other versions may happen to work, but we never know ;)

Happy hacking!

Hi @cctv888 , I'm using miniconda (https://docs.conda.io/en/latest/miniconda.html) and you should be able to install all the dependencies in the exact same version I've used for this project with: ```sh conda env create -f environment.yaml conda activate cent-patates ``` @xseth you can see in the [environment.yaml file](https://github.com/sitegui/cent-patates/blob/master/environment.yaml) that I've used Python 3.7.3 and Tensorflow 2.0.0a0. Other versions may happen to work, but we never know ;) Happy hacking!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sitegui/cent-patates#1
No description provided.