Home
last modified time | relevance | path

Searched refs:SplitAndParseAsInts (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/lib/strings/
Dstr_util_test.cc270 TEST(SplitAndParseAsInts, Int32) { in TEST() argument
272 EXPECT_TRUE(str_util::SplitAndParseAsInts("", ',', &nums)); in TEST()
275 EXPECT_TRUE(str_util::SplitAndParseAsInts("134", ',', &nums)); in TEST()
279 EXPECT_TRUE(str_util::SplitAndParseAsInts("134,2,13,-5", ',', &nums)); in TEST()
286 EXPECT_FALSE(str_util::SplitAndParseAsInts("abc", ',', &nums)); in TEST()
288 EXPECT_FALSE(str_util::SplitAndParseAsInts("-13,abc", ',', &nums)); in TEST()
290 EXPECT_FALSE(str_util::SplitAndParseAsInts("13,abc,5", ',', &nums)); in TEST()
293 TEST(SplitAndParseAsInts, Int64) { in TEST() argument
295 EXPECT_TRUE(str_util::SplitAndParseAsInts("", ',', &nums)); in TEST()
298 EXPECT_TRUE(str_util::SplitAndParseAsInts("134", ',', &nums)); in TEST()
[all …]
Dstr_util.cc220 bool SplitAndParseAsInts(StringPiece text, char delim, in SplitAndParseAsInts() function
438 bool SplitAndParseAsInts(StringPiece text, char delim, in SplitAndParseAsInts() function
440 return SplitAndParseAsInts<int32>(text, delim, strings::safe_strto32, result); in SplitAndParseAsInts()
443 bool SplitAndParseAsInts(StringPiece text, char delim, in SplitAndParseAsInts() function
445 return SplitAndParseAsInts<int64>(text, delim, strings::safe_strto64, result); in SplitAndParseAsInts()
450 return SplitAndParseAsInts<float>(text, delim, in SplitAndParseAsFloats()
Dstr_util.h136 bool SplitAndParseAsInts(StringPiece text, char delim,
138 bool SplitAndParseAsInts(StringPiece text, char delim,
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_rewriter_transform.cc58 CHECK(str_util::SplitAndParseAsInts(shape_string, ',', &dims)); in RewriteQuantizedStrippedModelForHexagon()
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_rewriter_transform.cc120 CHECK(str_util::SplitAndParseAsInts(input_shapes_strs.at(i), ',', &dims)); in PlaceShapeType()
/external/tensorflow/tensorflow/tools/benchmark/
Dbenchmark_model.cc536 CHECK(str_util::SplitAndParseAsInts(input_layer_shapes[n], ',', &sizes)) in Main()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.cc600 if (!str_util::SplitAndParseAsInts(shape_string, ',', &dims)) { in TensorShapeFromString()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.cc179 if (!str_util::SplitAndParseAsInts(gpu_ring_order_str, ',', in ParseRingOrder()
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system.cc554 if (!str_util::SplitAndParseAsInts(range_piece, '-', &range_parts) || in RequestUploadSessionStatus()