- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fitting model with training data ...
------------------------------
WARNING:tensorflow:From /home/owais/anaconda3/envs/
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
WARNING:tensorflow:OMP_NUM_
Traceback (most recent call last):
File "train.py", line 170, in <module>
args.batch_size, args.epochs)
File "train.py", line 141, in train_and_predict
callbacks=model_callbacks)
File "/home/owais/anaconda3/envs/
use_multiprocessing=use_
File "/home/owais/anaconda3/envs/
steps_name='steps_per_epoch')
File "/home/owais/anaconda3/envs/
ins = _prepare_feed_values(model, inputs, targets, sample_weights, mode)
File "/home/owais/anaconda3/envs/
extract_tensors_from_dataset=
File "/home/owais/anaconda3/envs/
exception_prefix='input')
File "/home/owais/anaconda3/envs/
standardize_single_array(x, shape) for (x, shape) in zip(data, shapes)
File "/home/owais/anaconda3/envs/
standardize_single_array(x, shape) for (x, shape) in zip(data, shapes)
File "/home/owais/anaconda3/envs/
if (x.shape is not None and len(x.shape) == 1 and
File "/home/owais/anaconda3/envs/
raise ValueError("Cannot take the length of shape with unknown rank.")
ValueError: Cannot take the length of shape with unknown rank.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Owais,
Thanks for reaching out to us.
The error ValueError: Cannot take the length of shape with unknown rank has been reported as a bug in tensorflow.keras module, as mentioned in the following thread:
https://github.com/tensorflow/tensorflow/issues/24520
The issue is resolved by upgrading to TensorFlow 2.2
For more information, please refer to the following comments:
https://github.com/tensorflow/tensorflow/issues/24520#issuecomment-626996164
https://github.com/tensorflow/tensorflow/issues/24520#issuecomment-648379484
https://github.com/tensorflow/tensorflow/issues/24520#issuecomment-657492545
Regards,
Munesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Owais,
This thread will no longer be monitored since we have provided a solution and references. If you need any additional information from Intel, please submit a new question.
Regards,
Munesh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page