Home
last modified time | relevance | path

Searched refs:from_value (Results 1 – 25 of 59) sorted by relevance

123

/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py67 ("Optional", lambda: optional_ops.Optional.from_value(37.0),
125 opt = optional_ops.Optional.from_value(constant_op.constant(37.0))
131 opt = optional_ops.Optional.from_value({
151 opt = optional_ops.Optional.from_value((st_0, st_1))
183 opt1 = optional_ops.Optional.from_value((1.0, 2.0))
184 opt2 = optional_ops.Optional.from_value((3.0, 4.0))
209 opt1 = optional_ops.Optional.from_value([1, 2.0])
210 opt2 = optional_ops.Optional.from_value([3, 4.0])
211 opt3 = optional_ops.Optional.from_value((5.0, opt1._variant_tensor))
212 opt4 = optional_ops.Optional.from_value((6.0, opt2._variant_tensor))
[all …]
/external/tensorflow/tensorflow/python/framework/
Dsparse_tensor.py108 def from_value(cls, sparse_tensor_value): member in SparseTensor
305 value = SparseTensor.from_value(value)
327 value = SparseTensor.from_value(value)
386 def from_value(cls, value): member in SparseTensorSpec
393 return cls.from_value(SparseTensor.from_value(value))
402 SparseTensor, SparseTensorSpec.from_value)
404 SparseTensorValue, SparseTensorSpec.from_value)
427 value = SparseTensor.from_value(value)
Dsparse_tensor_test.py44 sparse_tensor.SparseTensor.from_value(sp_value),
45 sparse_tensor.SparseTensor.from_value(
91 from_value = sparse_tensor.convert_to_tensor_or_sparse_tensor(
93 self.assertAllEqual(value, self.evaluate(from_value))
103 st = sparse_tensor.SparseTensor.from_value(sparse_tensor_value)
104 from_value = sparse_tensor.convert_to_tensor_or_sparse_tensor(
107 for convertee in [from_value, from_tensor]:
Dtype_spec_test.py76 def from_value(cls, value): member in TwoTensorsSpec
82 TwoTensors, TwoTensorsSpec.from_value)
241 spec = TwoTensorsSpec.from_value(value)
284 self.assertEqual(spec, TwoTensorsSpec.from_value(value))
/external/tensorflow/tensorflow/python/data/ops/
Doptional_ops.py88 def from_value(value): member in Optional
159 return OptionalSpec.from_value(self)
191 def from_value(value): member in OptionalSpec
/external/clang/bindings/python/tests/cindex/
Dtest_token_kind.py24 TokenKind.from_value(-1)
35 t = TokenKind.from_value(3)
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_reshape_op_test.py56 sp_input = sparse_tensor.SparseTensor.from_value(
63 sp_input = sparse_tensor.SparseTensor.from_value(
71 sp_input = sparse_tensor.SparseTensor.from_value(
78 sp_input = sparse_tensor.SparseTensor.from_value(
85 sp_input = sparse_tensor.SparseTensor.from_value(
250 sp_input = sparse_tensor.SparseTensor.from_value(input_val)
Dsparse_ops_test.py133 return (sparse_tensor.SparseTensor.from_value(indices),
134 sparse_tensor.SparseTensor.from_value(values))
153 sparse_tensor.SparseTensor.from_value(indices_v)):
155 sparse_tensor.SparseTensor.from_value(values_v)):
247 return ([sparse_tensor.SparseTensor.from_value(indices0),
248 sparse_tensor.SparseTensor.from_value(indices1)],
249 sparse_tensor.SparseTensor.from_value(values))
298 return sparse_tensor.SparseTensor.from_value(self._SparseTensorValue_5x6())
484 return sparse_tensor.SparseTensor.from_value(self._SparseTensorValue_5x6())
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-optional-spec.pbtxt15 name: "from_value"
Dtensorflow.data.-dataset-spec.pbtxt16 name: "from_value"
Dtensorflow.-tensor-array-spec.pbtxt15 name: "from_value"
Dtensorflow.data.experimental.-optional.pbtxt14 name: "from_value"
Dtensorflow.-ragged-tensor-spec.pbtxt16 name: "from_value"
Dtensorflow.-sparse-tensor-spec.pbtxt24 name: "from_value"
Dtensorflow.sparse.-sparse-tensor.pbtxt48 name: "from_value"
Dtensorflow.-sparse-tensor.pbtxt48 name: "from_value"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-optional-spec.pbtxt15 name: "from_value"
Dtensorflow.data.experimental.-optional-structure.pbtxt15 name: "from_value"
Dtensorflow.data.experimental.-optional.pbtxt14 name: "from_value"
Dtensorflow.-tensor-array-spec.pbtxt15 name: "from_value"
Dtensorflow.data.-dataset-spec.pbtxt16 name: "from_value"
Dtensorflow.data.experimental.-dataset-structure.pbtxt16 name: "from_value"
Dtensorflow.-ragged-tensor-spec.pbtxt16 name: "from_value"
Dtensorflow.-sparse-tensor-spec.pbtxt24 name: "from_value"
Dtensorflow.sparse.-sparse-tensor.pbtxt48 name: "from_value"

123