Part 4: Toward Learned Receivers Bug TensorShape to a Tensor: (None, None)
When trying the Part 4: Toward Learned Receivers example at the step Training the Neural Receiver I get an error about TensorShape to a Tensor: (None, None) while i did not alter the example in any way. why is this? The full error is bellow:
Traceback (most recent call last):
File "/cm/local/apps/slurm/var/spool/job6555120/slurm_script", line 308, in
/cm/local/apps/slurm/var/spool/job6555120/slurm_script:280 __call__ *
llr = self.rg_demapper(llr) # Extract data-carrying resource elements. The other LLrs are discarded
/home/tue/20184223/.local/lib/python3.6/site-packages/sionna/ofdm/resource_grid.py:470 call *
y = flatten_dims(y, 2, 2)
/home/tue/20184223/.local/lib/python3.6/site-packages/sionna/utils/tensors.py:76 flatten_dims *
flat_dim = tf.reduce_prod(tensor.shape[axis:axis+num_dims])
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py:206 wrapper **
return target(*args, **kwargs)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py:2744 reduce_prod
input_tensor, _ReductionDims(input_tensor, axis), keepdims,
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py:2094 _ReductionDims
return range(0, array_ops.rank(x))
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py:206 wrapper
return target(*args, **kwargs)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py:839 rank
return rank_internal(input, name, optimize=True)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py:859 rank_internal
input = ops.convert_to_tensor(input)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/profiler/trace.py:163 wrapped
return func(*args, **kwargs)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py:1566 convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
/home/tue/20184223/.local/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py:363 _tensor_shape_tensor_conversion_function
"Cannot convert a partially known TensorShape to a Tensor: %s" % s)
ValueError: Cannot convert a partially known TensorShape to a Tensor: (None, None)
Could you please let us know details of your system, such as TF, Sionna, and Python versions? Which OS are you using?
I have used in on a windows machine it has python 3.10.4 sionna 0.9.1 and tensorflow 2.9.1 i have also tried it on a different machine running linux with python 3.6.8 siona 0.9.1 and tensorflow 2.6.2
Both of them show the exact same error.
Sionna does currently not support TF 2.9.1. Can you downgrade to TF 2.8 on your windows machine?
Just tried this i got the same error
Ok. We'll look into it. I cannot reproduce the error on my system and the notebook executes without error on Google Colab.
Thanks, for the help
We were not able to reproduce the error and close this issue. Please re-open in case that the problem persists.