Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is error arised form “data_utils.py” #4

Open
Lcococi opened this issue Dec 27, 2022 · 0 comments
Open

There is error arised form “data_utils.py” #4

Lcococi opened this issue Dec 27, 2022 · 0 comments

Comments

@Lcococi
Copy link

Lcococi commented Dec 27, 2022

--When I run:
python3 train_mdn.py

--There is error arised form “data_utils.py”:

         else:
                  ds_maxes = ds.map(lambda x: tf.reduce_max(x), num_parallel_calls=AUTOTUNE)
                  ds_mins = ds.map(lambda x: tf.reduce_min(x), num_parallel_calls=AUTOTUNE)
                  ds_min = ds_mins.reduce(tf.float32.max, lambda x, y: tf.math.minimum(x, y))               <--The error from this line
                  ds_max = ds_maxes.reduce(tf.float32.min, lambda x, y: tf.math.maximum(x, y))
                  ds_min, ds_max = ds_mins.numpy(), ds_maxes.numpy()

--The terminal shows:

     _File "/home/py/anaconda3/envs/torch/lib/python3.9/site-packages/tensorflow/python/framework/ops.py", line 7215, in 
     raise_from_not_ok_status
     raise core._status_to_exception(e) from None  # pylint: disable=protected-access
     tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node 
     __wrapped__ReduceDataset_Targuments_0_Tstate_1_output_types_1_device_/job:localhost/replica:0/task:0/device:CPU:0}} Key: 
     inputs.  Can't parse serialized Example.
     [[{{node ParseExample/ParseExampleV2}}]] [Op:ReduceDataset]_

--Why there is a "Can't parse serialized Example." bug? Thanks very much for solving my question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant