Searched refs:from_pyval (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/python/ops/structured/ |
D | structured_tensor_slice_test.py | 207 struct = structured_tensor.StructuredTensor.from_pyval(EXAMPLE_STRUCT) 211 struct2 = structured_tensor.StructuredTensor.from_pyval( 234 struct_vector = structured_tensor.StructuredTensor.from_pyval( 239 struct_vector2 = structured_tensor.StructuredTensor.from_pyval(
|
D | structured_tensor.py | 465 def from_pyval(cls, pyval, typespec=None): member in StructuredTensor 501 fields = dict((k, cls.from_pyval(v)) for (k, v) in pyval.items()) 510 (k, cls.from_pyval(v, field_specs[k])) for (k, v) in pyval.items()) 522 fields[key] = cls.from_pyval(target) 534 fields[key] = cls.from_pyval(fields.get(key, []), spec)
|
D | structured_tensor_test.py | 336 actual = structured_tensor.StructuredTensor.from_pyval(pyval, type_spec) 352 structured_tensor.StructuredTensor.from_pyval(pyval, type_spec)
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | xla_client_test.py | 439 arg_buffers = [xla_client.Buffer.from_pyval(arg) for arg in arguments] 468 arg_buffer = xla_client.Buffer.from_pyval(arg) 482 t = xla_client.Buffer.from_pyval(np.array([1, 2, 3, 4], dtype=np.int32)) 495 xla_client.Buffer.from_pyval( 497 xla_client.Buffer.from_pyval(np.array([2, 3, 4, 5], dtype=np.int32)), 517 (xla_client.Buffer.from_pyval(NumpyArrayF32([1.0, 2.0])), 518 xla_client.Buffer.from_pyval(NumpyArrayS32([3, 4]))), device) 520 (t, xla_client.Buffer.from_pyval(NumpyArrayS32([5]))), device) 539 b0 = xla_client.Buffer.from_pyval(t[0]) 540 b1 = xla_client.Buffer.from_pyval(t[1]) [all …]
|
D | xla_client.py | 395 def from_pyval(pyval, device=None, backend=None, force_copy=False): member in Buffer 632 return Buffer.from_pyval(
|
/external/tensorflow/tensorflow/compiler/xla/python_api/ |
D | xla_shape.py | 99 def from_pyval(pyval): member in Shape
|