Skip to content

During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string #71

@goreng2

Description

@goreng2

Hi,
First, I use conda env
When I run python test_streaming_transducer.py, I encounter the below error

tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
  (0) Invalid argument:  2 root error(s) found.
  (0) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
  (1) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
0 successful operations.
0 derived errors ignored.
         [[{{node StatefulPartitionedCall/StatefulPartitionedCall_2/map/while/body/_549/map/while/streaming_transducer_beam_search/TensorArrayV2Write_2/TensorListSetItem/_188}}]]
  (1) Invalid argument:  2 root error(s) found.
  (0) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
  (1) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
0 successful operations.
0 derived errors ignored.
         [[{{node StatefulPartitionedCall/StatefulPartitionedCall_2/map/while/body/_549/map/while/streaming_transducer_beam_search/TensorArrayV2Write_2/TensorListSetItem/_188}}]]
         [[StatefulPartitionedCall/StatefulPartitionedCall_1/map/while/body/_438/map/while/streaming_transducer_beam_search/while/body/_1485/map/while/streaming_transducer_beam_search/while/while/body/_2063/map/while/streaming_transducer_beam_search/while/while/while/body/_2487/map/while/streaming_transducer_beam_search/while/while/while/cond/pivot_f/_2813/_653]]
0 successful operations.
0 derived errors ignored. [Op:__inference__test_function_26746]

Function call stack:
_test_function -> _test_function

I thought It's problem about tensorflow version
Because My env include the below

tensorboard               2.3.0              pyh4dce500_0
tensorboard-plugin-wit    1.6.0                      py_0
tensorflow                2.2.0           gpu_py37h1a511ff_0
tensorflow-addons         0.11.2                   pypi_0    pypi
tensorflow-base           2.2.0           gpu_py37h8a81be8_0
tensorflow-datasets       3.2.1                    pypi_0    pypi
tensorflow-estimator      2.3.0                    pypi_0    pypi
tensorflow-gpu            2.3.1                    pypi_0    pypi
tensorflow-metadata       0.25.0                   pypi_0    pypi
warprnnt-tensorflow       0.1                      pypi_0    pypi

I focused tensorflow 2.2.0, So I update that using pip install -U tensorflow

Now, My env include

tensorboard               2.3.0              pyh4dce500_0
tensorboard-plugin-wit    1.6.0                      py_0
tensorflow                2.3.1                    pypi_0    pypi
tensorflow-addons         0.11.2                   pypi_0    pypi
tensorflow-datasets       3.2.1                    pypi_0    pypi
tensorflow-estimator      2.3.0                    pypi_0    pypi
tensorflow-gpu            2.3.1                    pypi_0    pypi
tensorflow-metadata       0.25.0                   pypi_0    pypi
warprnnt-tensorflow       0.1                      pypi_0    pypi

Well.. I don't know Why tensorflow-base uninstalled

Anyway, The same error occur again...

What can I do for running test code?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions