MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / _convert

Method _convert

tensorflow/python/ops/script_ops.py:60–86  ·  view source on GitHub ↗

Converts an arg to numpy, avoiding dangerous string and unicode dtypes. Numpy pads with zeros when using string and unicode dtypes if different components of a tensor have different lengths. This is bad: ignoring the padding is wrong for text data, and removing the padding is wrong for

(value, dtype=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__call__Method · 0.95
generator_py_funcMethod · 0.45

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected