Home
last modified time | relevance | path

Searched refs:data_string (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dspectrogram_test_utils.cc59 string data_string; in ReadRawFloatFileToComplexVector() local
60 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadRawFloatFileToComplexVector()
71 const int end = data_string.size(); in ReadRawFloatFileToComplexVector()
76 arr[3 - i] = *(data_string.data() + offset + i); in ReadRawFloatFileToComplexVector()
81 arr[3 - i] = *(data_string.data() + offset + i); in ReadRawFloatFileToComplexVector()
86 memcpy(&real_out, data_string.data() + offset, kBytesPerValue); in ReadRawFloatFileToComplexVector()
88 memcpy(&imag_out, data_string.data() + offset, kBytesPerValue); in ReadRawFloatFileToComplexVector()
109 string data_string; in ReadCSVFileToComplexVectorOrDie() local
110 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadCSVFileToComplexVectorOrDie()
114 std::vector<string> lines = str_util::Split(data_string, '\n'); in ReadCSVFileToComplexVectorOrDie()
/external/python/cpython3/Lib/
D_strptime.py318 def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): argument
323 for index, arg in enumerate([data_string, format]):
356 found = format_regex.match(data_string)
359 (data_string, format))
360 if len(data_string) != found.end():
362 data_string[found.end():])
568 def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"): argument
571 tt = _strptime(data_string, format)[0]
574 def _strptime_datetime(cls, data_string, format="%a %b %d %H:%M:%S %Y"): argument
577 tt, fraction, gmtoff_fraction = _strptime(data_string, format)
/external/python/cpython2/Lib/
D_strptime.py299 def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): argument
329 found = format_regex.match(data_string)
332 (data_string, format))
333 if len(data_string) != found.end():
335 data_string[found.end():])
477 def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"): argument
478 return _strptime(data_string, format)[0]
/external/libchrome/crypto/
Dhmac_unittest.cc152 std::string data_string(cases[i].data, cases[i].data_len); in TEST() local
154 EXPECT_TRUE(hmac.Sign(data_string, digest, kSHA1DigestSize)); in TEST()
246 std::string data_string(kSimpleHmacCases[i].data, in TEST() local
249 EXPECT_TRUE(hmac.Sign(data_string, digest, kSHA1DigestSize)); in TEST()
/external/protobuf/src/google/protobuf/util/internal/
Ddefault_value_objectwriter.cc552 util::StatusOr<string> data_string = data.ToString(); in RenderDataPiece() local
554 name == "@type" && data_string.ok()) { in RenderDataPiece()
555 const string& string_value = data_string.ValueOrDie(); in RenderDataPiece()
/external/python/cpython2/Lib/test/
Dtest_strptime.py209 self.assertRaises(ValueError, _strptime._strptime_time, data_string="%d",
/external/python/cpython3/Lib/test/
Dtest_strptime.py209 self.assertRaises(ValueError, _strptime._strptime_time, data_string="%d",