Skip to content

NotImplementedError: Cannot convert a symbolic Tensor (cond_2/strided_slice:0) to a numpy array. #584

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

Open
songkranandta opened this issue Nov 5, 2021 · 0 comments

Comments

@songkranandta
Copy link

NotImplementedError: in converted code:

C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\object_detection\data_decoders\tf_example_decoder.py:571 default_groundtruth_weights  *
    return tf.ones(
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\util\deprecation.py:507 new_func
    return func(*args, **kwargs)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\ops\array_ops.py:2560 ones
    output = _constant_if_small(one, shape, dtype, name)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\ops\array_ops.py:2295 _constant_if_small
    if np.prod(shape) < 1000:
<__array_function__ internals>:6 prod

C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\numpy\core\fromnumeric.py:3052 prod
    keepdims=keepdims, initial=initial, where=where)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\numpy\core\fromnumeric.py:86 _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\framework\ops.py:736 __array__
    " array.".format(self.name))

NotImplementedError: Cannot convert a symbolic Tensor (cond_2/strided_slice:0) to a numpy array.
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