Home
last modified time | relevance | path

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

1234

/external/rust/crates/rusqlite/src/types/
Dto_sql.rs48 macro_rules! from_value( macro
56 from_value!(String);
57 from_value!(Null);
58 from_value!(bool);
59 from_value!(i8);
60 from_value!(i16);
61 from_value!(i32);
62 from_value!(i64);
63 from_value!(isize);
64 from_value!(u8);
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py63 ("Optional", lambda: optional_ops.Optional.from_value(37.0),
122 opt = optional_ops.Optional.from_value(constant_op.constant(37.0))
128 opt = optional_ops.Optional.from_value({
148 opt = optional_ops.Optional.from_value((st_0, st_1))
180 opt1 = optional_ops.Optional.from_value((1.0, 2.0))
181 opt2 = optional_ops.Optional.from_value((3.0, 4.0))
203 opt1 = optional_ops.Optional.from_value([1, 2.0])
204 opt2 = optional_ops.Optional.from_value([3, 4.0])
205 opt3 = optional_ops.Optional.from_value((5.0, opt1._variant_tensor))
206 opt4 = optional_ops.Optional.from_value((6.0, opt2._variant_tensor))
[all …]
/external/tensorflow/tensorflow/python/framework/
Dsparse_tensor.py103 def from_value(cls, sparse_tensor_value): member in SparseTensor
335 value = SparseTensor.from_value(value)
357 value = SparseTensor.from_value(value)
417 def from_value(cls, value): member in SparseTensorSpec
424 return cls.from_value(SparseTensor.from_value(value))
434 SparseTensor, SparseTensorSpec.from_value)
436 SparseTensorValue, SparseTensorSpec.from_value)
459 value = SparseTensor.from_value(value)
Dsparse_tensor_test.py46 sparse_tensor.SparseTensor.from_value(sp_value),
47 sparse_tensor.SparseTensor.from_value(
115 from_value = sparse_tensor.convert_to_tensor_or_sparse_tensor(
117 self.assertAllEqual(value, self.evaluate(from_value))
125 st = sparse_tensor.SparseTensor.from_value(sparse_tensor_value)
126 from_value = self.evaluate(
130 for convertee in [from_value, from_tensor]:
Dtype_spec_test.py83 def from_value(cls, value): member in TwoTensorsSpec
107 TwoTensors, TwoTensorsSpec.from_value)
149 def from_value(cls, value): member in TwoCompositesSpec
165 TwoComposites, TwoCompositesSpec.from_value)
202 def from_value(cls, value): member in NestOfTensorsSpec
211 NestOfTensors, NestOfTensorsSpec.from_value)
543 named_tuple_spec_a = NestOfTensorsSpec.from_value(NestOfTensors(
545 named_tuple_spec_b = NestOfTensorsSpec.from_value(NestOfTensors(
547 named_tuple_spec_c = NestOfTensorsSpec.from_value(NestOfTensors(
549 normal_tuple_spec = NestOfTensorsSpec.from_value(NestOfTensors((2, "bbb")))
[all …]
/external/tensorflow/tensorflow/python/data/ops/
Doptional_ops.py133 def from_value(value): member in Optional
196 return OptionalSpec.from_value(self)
248 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/sparse_ops/
Dsparse_reshape_op_test.py53 sp_input = sparse_tensor.SparseTensor.from_value(
60 sp_input = sparse_tensor.SparseTensor.from_value(
68 sp_input = sparse_tensor.SparseTensor.from_value(
75 sp_input = sparse_tensor.SparseTensor.from_value(
82 sp_input = sparse_tensor.SparseTensor.from_value(
269 sp_input = sparse_tensor.SparseTensor.from_value(input_val)
Dsparse_ops_test.py129 return (sparse_tensor.SparseTensor.from_value(indices),
130 sparse_tensor.SparseTensor.from_value(values))
149 sparse_tensor.SparseTensor.from_value(indices_v)):
151 sparse_tensor.SparseTensor.from_value(values_v)):
243 return ([sparse_tensor.SparseTensor.from_value(indices0),
244 sparse_tensor.SparseTensor.from_value(indices1)],
245 sparse_tensor.SparseTensor.from_value(values))
294 return sparse_tensor.SparseTensor.from_value(self._SparseTensorValue_5x6())
480 return sparse_tensor.SparseTensor.from_value(self._SparseTensorValue_5x6())
/external/rust/crates/serde_json/tests/regression/
Dissue520.rs15 let e = serde_json::from_value::<E>(v).unwrap(); in test()
Dissue795.rs58 assert!(serde_json::from_value::<Enum>(j).is_err()); in test()
/external/tensorflow/tensorflow/python/data/util/
Dstructure.py112 normalized_components.append(sparse_tensor.SparseTensor.from_value(t))
533 def from_value(value): member in NoneTensorSpec
562 NoneTensorSpec.from_value)
/external/crosvm/devices/src/pci/
Dpci_root.rs102 serde_json::from_value(data).context("failed to deserialize PciRootConfiguration")?; in restore()
366 serde_json::from_value(data).context("failed to deserialize PciRoot")?; in restore()
515 let deser: PciConfigIoSerializable = serde_json::from_value(data) in restore()
613 let deser: PciConfigMmioSerializable = serde_json::from_value(data) in restore()
721 let deser: PciVirtualConfigMmioSerializable = serde_json::from_value(data) in restore()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.experimental.-optional.pbtxt18 name: "from_value"
Dtensorflow.data.experimental.-optional.pbtxt18 name: "from_value"
Dtensorflow.-sparse-tensor.pbtxt48 name: "from_value"
Dtensorflow.sparse.-sparse-tensor.pbtxt48 name: "from_value"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.experimental.-optional.pbtxt18 name: "from_value"
Dtensorflow.data.experimental.-optional.pbtxt18 name: "from_value"
Dtensorflow.-sparse-tensor.pbtxt48 name: "from_value"
Dtensorflow.sparse.-sparse-tensor.pbtxt48 name: "from_value"
Dtensorflow.-tensor-array-spec.pbtxt29 name: "from_value"
Dtensorflow.data.-iterator-spec.pbtxt29 name: "from_value"
/external/tensorflow/tensorflow/python/ops/
Dvariable_spec_test.py109 spec = resource_variable_ops.VariableSpec.from_value(var)
156 spec = resource_variable_ops.VariableSpec.from_value(var)
/external/rust/crates/log/src/kv/
Derror.rs27 pub(super) fn from_value(err: value_bag::Error) -> Self { in from_value() method

1234