MCPcopy Create free account
hub / github.com/alibaba/nann / convert_to_tensor

Function convert_to_tensor

tensorflow/tensorflow/python/framework/ops.py:1128–1184  ·  view source on GitHub ↗

Converts the given `value` to a `Tensor`. This function converts Python objects of various types to `Tensor` objects. It accepts `Tensor` objects, numpy arrays, Python lists, and Python scalars. For example: ```python import numpy as np def my_func(arg): arg = tf.convert_to_tensor

(value,
                      dtype=None,
                      name=None,
                      preferred_dtype=None,
                      dtype_hint=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

convert_to_tensor_v2Function · 0.85

Tested by

no test coverage detected