Home
last modified time | relevance | path

Searched refs:DataTypeFromString (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dtypes_test.cc61 EXPECT_TRUE(DataTypeFromString(DataTypeString(dt_e), &dt_e2)); in TEST()
63 EXPECT_TRUE(DataTypeFromString(DataTypeString(dt_e_ref), &dt_e2_ref)); in TEST()
85 TEST(TypesTest, DataTypeFromString) { in TEST() argument
87 ASSERT_TRUE(DataTypeFromString("int32", &dt)); in TEST()
89 ASSERT_TRUE(DataTypeFromString("int32_ref", &dt)); in TEST()
91 EXPECT_FALSE(DataTypeFromString("int32_ref_ref", &dt)); in TEST()
92 EXPECT_FALSE(DataTypeFromString("foo", &dt)); in TEST()
93 EXPECT_FALSE(DataTypeFromString("foo_ref", &dt)); in TEST()
94 ASSERT_TRUE(DataTypeFromString("int64", &dt)); in TEST()
96 ASSERT_TRUE(DataTypeFromString("int64_ref", &dt)); in TEST()
[all …]
Dtypes.cc115 bool DataTypeFromString(StringPiece sp, DataType* dt) { in DataTypeFromString() function
119 if (DataTypeFromString(sp, &non_ref) && !IsRefType(non_ref)) { in DataTypeFromString()
Dop_def_builder.cc221 VERIFY(DataTypeFromString(type_string, &dt), in FinalizeAttr()
368 if (DataTypeFromString(type_or_attr, &dt)) { in FinalizeInputOrOutput()
Dtypes.h229 bool DataTypeFromString(StringPiece sp, DataType* dt);
Dop_def_util.cc283 VALIDATE(!DataTypeFromString(attr.name(), &dt), "Attr can't have name ", in ValidateOpDef()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dstrip_unused_nodes.cc43 if (!DataTypeFromString(type_string, result)) { in TypeForPlaceholder()
64 if (!DataTypeFromString(type_string, result)) { in TypeForPlaceholder()
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_rewriter_transform.cc70 CHECK(DataTypeFromString(data_type_string, &data_type)) in RewriteQuantizedStrippedModelForHexagon()
/external/tensorflow/tensorflow/core/profiler/utils/
Dcost_utils.cc55 if (!DataTypeFromString(parts[0], &data_type)) return tensor_prop; in GetTensorProperties()
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec.cc48 CHECK(DataTypeFromString(input_layer_type[i], &type)); in GenerateInputValues()
Dtf_driver.cc120 CHECK(DataTypeFromString(input_layer_type[i], &input_types_[i])); in TfDriver()
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_rewriter_transform.cc128 CHECK(DataTypeFromString(input_types_strs.at(i), &data_type)) in PlaceShapeType()
/external/tensorflow/tensorflow/core/graph/
Dtestlib.cc54 CHECK(DataTypeFromString(type, &dtype)); in Recv()
/external/tensorflow/tensorflow/tools/benchmark/
Dbenchmark_model.cc534 CHECK(DataTypeFromString(input_layer_types[n], &input.data_type)) in Main()