Skip to content

Commit

Permalink
change cpu conversion for tf to convert-to-tensor (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperez999 authored Apr 4, 2023
1 parent 1cc04b3 commit 4561776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merlin/table/tensorflow_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _register_from_dlpack_cpu_to_tf():
@_from_dlpack_cpu.register(tf.Tensor)
@_from_dlpack_cpu.register(eager_tensor_type)
def _from_dlpack_cpu_to_tf(target_type, array):
return tf.experimental.dlpack.from_dlpack(array.__dlpack__())
return tf.convert_to_tensor(array)


@_from_dlpack_gpu.register_lazy("tensorflow")
Expand Down

0 comments on commit 4561776

Please sign in to comment.