/external/tensorflow/tensorflow/core/platform/ |
D | tstring.h | 74 class tstring { 108 tstring(); 109 tstring(const std::string& str); // NOLINT TODO(b/147740521): Make explicit. 110 tstring(const char* str, size_t len); 111 tstring(const char* str); // NOLINT TODO(b/147740521): Make explicit. 112 tstring(size_t n, char c); 113 explicit tstring(const std::string_view str); 115 explicit tstring(const std::Cord& cord); 119 tstring(const tstring& str); 122 tstring(tstring&& str) noexcept; [all …]
|
D | tstring_test.cc | 25 using tensorflow::tstring; 36 tstring s10; in TEST() 37 tstring s11("a\0a", 3); in TEST() 38 tstring s12(kLongString); in TEST() 39 tstring s13(3, 'b'); in TEST() 40 tstring s14(absl::string_view("hi")); in TEST() 41 tstring s15(std::string("bye")); in TEST() 45 EXPECT_EQ(tstring::Type::SMALL, s10.type()); in TEST() 56 EXPECT_EQ(tstring::Type::LARGE, s12.type()); in TEST() 60 EXPECT_EQ(tstring::Type::SMALL, s14.type()); in TEST() [all …]
|
D | base64.h | 46 extern template Status Base64Decode<tstring>(StringPiece data, 47 tstring* decoded); 48 extern template Status Base64Encode<tstring>(StringPiece source, 49 tstring* encoded); 50 extern template Status Base64Encode<tstring>(StringPiece source, 52 tstring* encoded);
|
/external/tensorflow/tensorflow/core/kernels/ |
D | string_ngrams_op_test.cc | 54 void assert_string_equal(const std::vector<tstring> &expected, in assert_string_equal() 58 test::FillValues<tstring>(&expected_tensor, expected); in assert_string_equal() 59 test::ExpectTensorEqual<tstring>(expected_tensor, value); in assert_string_equal() 75 AddInputFromArray<tstring>(TensorShape({6}), {"a", "b", "c", "d", "e", "f"}); in TEST_F() 79 std::vector<tstring> expected_values( // in TEST_F() 93 AddInputFromArray<tstring>(TensorShape({6}), {"a", "b", "c", "d", "e", "f"}); in TEST_F() 97 std::vector<tstring> expected_values( in TEST_F() 112 AddInputFromArray<tstring>(TensorShape({6}), {"a", "b", "c", "d", "e", "f"}); in TEST_F() 116 std::vector<tstring> expected_values( // in TEST_F() 130 AddInputFromArray<tstring>(TensorShape({6}), {"a", "b", "c", "d", "e", "f"}); in TEST_F() [all …]
|
D | as_string_op_test.cc | 54 test::FillValues<tstring>(&expected, {"-42", "0", "42"}); in TEST_F() 55 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 64 test::FillValues<tstring>(&expected, {"-42", "0", "42"}); in TEST_F() 65 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 74 test::FillValues<tstring>( in TEST_F() 76 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 86 test::FillValues<tstring>(&expected, {"-4.200000e+01", "0.000000e+00", in TEST_F() 88 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 98 test::FillValues<tstring>(&expected, {"-42", "0", "3.14159", "42"}); in TEST_F() 99 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() [all …]
|
D | summary_op_test.cc | 66 AddInputFromArray<tstring>(TensorShape({}), {"taghisto"}); in TEST_F() 75 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 95 AddInputFromArray<tstring>(TensorShape({}), {"taghisto"}); in TEST_F() 103 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 123 AddInputFromList<tstring>(TensorShape({}), {"taghisto"}); in TEST_F() 132 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 152 AddInputFromArray<tstring>(TensorShape({2, 1}), {"tag1", "tag2"}); in TEST_F() 162 AddInputFromArray<tstring>(TensorShape({2}), {"tag1", "tag2"}); in TEST_F() 197 AddInputFromArray<tstring>( in TEST_F() 206 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() [all …]
|
D | restore_op_test.cc | 100 input_0.scalar<tstring>()() = filename; in TEST_F() 104 Tensor input_1 = MakeInput<tstring>( in TEST_F() 155 Tensor input_12 = MakeInput<tstring>( in TEST_F() 194 AddInput<tstring>(TensorShape({}), in TEST_F() 195 [&filename](int x) -> tstring { return filename; }); in TEST_F() 196 AddInput<tstring>(TensorShape({}), in TEST_F() 197 [&](int x) -> tstring { return tensor_names[0]; }); in TEST_F() 209 (*mutable_input(1).tensor).scalar<tstring>()() = tensor_names[1]; in TEST_F() 221 (*mutable_input(1).tensor).scalar<tstring>()() = tensor_names[2]; in TEST_F() 233 (*mutable_input(1).tensor).scalar<tstring>()() = tensor_names[3]; in TEST_F() [all …]
|
D | roll_op_test.cc | 72 AddInputFromArray<tstring>(TensorShape({5}), {"a", "b", "c", "d", "e"}); in TEST_F() 79 test::FillValues<tstring>(&expected, {"c", "d", "e", "a", "b"}); in TEST_F() 80 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 125 AddInputFromArray<tstring>(TensorShape({3, 5}), in TEST_F() 134 test::FillValues<tstring>(&expected, {"g", "h", "i", "j", "f", "l", "m", "n", in TEST_F() 136 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 159 AddInputFromArray<tstring>( in TEST_F() 168 test::FillValues<tstring>( in TEST_F() 170 test::ExpectTensorEqual<tstring>(expected, *GetOutput(0)); in TEST_F() 194 AddInputFromArray<tstring>(TensorShape({5, 3}), in TEST_F() [all …]
|
D | restore_v2_op_test.cc | 111 input_0.scalar<tstring>()() = filename; in RunTest() 115 Tensor input_1 = MakeInput<tstring>( in RunTest() 120 Tensor shape_and_slices = MakeInput<tstring>( in RunTest() 201 AddInput<tstring>(TensorShape({}), in RunTest() 202 [&filename](int x) -> tstring { return filename; }); in RunTest() 203 AddInput<tstring>(TensorShape({1}), in RunTest() 204 [&](int x) -> tstring { return tensor_names[0]; }); in RunTest() 205 AddInput<tstring>(TensorShape({1}), [&](int x) -> tstring { in RunTest() 219 (*mutable_input(1).tensor).flat<tstring>()(0) = tensor_names[1]; in RunTest() 231 (*mutable_input(1).tensor).flat<tstring>()(0) = tensor_names[2]; in RunTest() [all …]
|
D | sparse_cross_op.cc | 115 return Fingerprint64(values_.vec<tstring>().data()[start + n]); in Feature() 125 return StrongKeyedHash(key_, values_.vec<tstring>()(start + n)); in Feature() 132 return Fingerprint64(values_.vec<tstring>()(start + n)); in Feature() 140 tstring SparseTensorColumn<tstring>::Feature(int64 batch, int64 n, in Feature() 144 return values_.vec<tstring>().data()[start + n]; in Feature() 149 tstring KeyedSparseTensorColumn<tstring>::Feature(int64 batch, int64 n, in Feature() 153 return values_.vec<tstring>().data()[start + n]; in Feature() 161 return values_.vec<tstring>().data()[start + n]; in Feature() 168 return values_.vec<tstring>().data()[start + n]; in Feature() 212 return Fingerprint64(tensor_.matrix<tstring>()(batch, n)); in Feature() [all …]
|
D | example_parsing_ops.cc | 106 auto keys_flat = key_t->flat<tstring>(); in GetTensorKeys() 120 keys->push_back(key.scalar<tstring>()()); in GetInputListKeys() 237 const tstring& serialized_proto = serialized->scalar<tstring>()(); in ParseExampleScalar() 246 auto serialized_t = serialized->flat<tstring>(); in ParseExampleVector() 247 auto names_t = names->flat<tstring>(); in ParseExampleVector() 248 gtl::ArraySlice<tstring> slice(serialized_t.data(), serialized_t.size()); in ParseExampleVector() 249 gtl::ArraySlice<tstring> names_slice(names_t.data(), names_t.size()); in ParseExampleVector() 364 const tstring& serialized_proto = serialized->scalar<tstring>()(); in Compute() 467 auto serialized_t = serialized->flat<tstring>(); in Compute() 468 auto debug_name_t = debug_name->flat<tstring>(); in Compute() [all …]
|
D | whole_file_read_ops.cc | 53 Status ReadLocked(tstring* key, tstring* value, bool* produced, in ReadLocked() 64 Status SerializeStateLocked(tstring* state) override { in SerializeStateLocked() 71 Status RestoreStateLocked(const tstring& state) override { in RestoreStateLocked() 115 ReadEntireFile(context->env(), input->scalar<tstring>()(), in Compute() 116 &output->scalar<tstring>()())); in Compute() 138 const string& filename = filename_input->scalar<tstring>()(); in Compute() 145 contents_input->scalar<tstring>()())); in Compute()
|
D | logging_ops_test.cc | 46 AddInputFromArray<tstring>(TensorShape({}), {"bar"}); in TEST_F() 56 AddInputFromArray<tstring>(TensorShape({2}), {"bar", "foo"}); in TEST_F() 100 AddInputFromArray<tstring>(TensorShape({}), {"foo"}); in TEST_F() 101 AddInputFromArray<tstring>(TensorShape({}), {"bar"}); in TEST_F() 111 AddInputFromArray<tstring>(TensorShape({}), {"foo"}); in TEST_F() 112 AddInputFromArray<tstring>(TensorShape({}), {"bar"}); in TEST_F() 122 AddInputFromArray<tstring>(TensorShape({}), {"foo"}); in TEST_F() 123 AddInputFromArray<tstring>(TensorShape({}), {"bar"}); in TEST_F()
|
/external/tensorflow/tensorflow/core/framework/ |
D | reader_base.h | 55 virtual Status ReadLocked(tstring* key, tstring* value, bool* produced, 62 virtual Status ReadUpToLocked(int64 num_records, std::vector<tstring>* keys, 63 std::vector<tstring>* values, int64* num_read, 75 virtual Status SerializeStateLocked(tstring* state); 76 virtual Status RestoreStateLocked(const tstring& state); 86 const tstring& current_work() const { return work_; } in current_work() 92 tstring KeyName(const tstring& key) const; 113 void Read(QueueInterface* queue, tstring* key, tstring* value, 119 std::vector<tstring>* keys, std::vector<tstring>* value, 125 Status SerializeState(tstring* state) override; [all …]
|
D | numeric_types.h | 57 struct NumTraits<tensorflow::tstring> : GenericNumTraits<tensorflow::tstring> { 68 static inline tensorflow::tstring epsilon(); 69 static inline tensorflow::tstring dummy_precision(); 70 static inline tensorflow::tstring lowest(); 71 static inline tensorflow::tstring highest(); 72 static inline tensorflow::tstring infinity(); 73 static inline tensorflow::tstring quiet_NaN();
|
D | reader_base.cc | 56 Status ReaderBase::SerializeState(tstring* state) { in SerializeState() 61 Status ReaderBase::SerializeStateLocked(tstring* state) { in SerializeStateLocked() 65 Status ReaderBase::RestoreState(const tstring& state) { in RestoreState() 74 Status ReaderBase::RestoreStateLocked(const tstring& state) { in RestoreStateLocked() 79 std::vector<tstring>* keys, in ReadUpTo() 80 std::vector<tstring>* values, in ReadUpTo() 136 Status ReaderBase::ReadUpToLocked(int64 num_records, std::vector<tstring>* keys, in ReadUpToLocked() 137 std::vector<tstring>* values, int64* num_read, in ReadUpToLocked() 140 tstring key; in ReadUpToLocked() 141 tstring value; in ReadUpToLocked() [all …]
|
D | reader_interface.h | 51 virtual void Read(QueueInterface* queue, tstring* key, tstring* value, 63 std::vector<tstring>* keys, 64 std::vector<tstring>* value, 76 virtual Status SerializeState(tstring* state) = 0; 78 virtual Status RestoreState(const tstring& state) = 0;
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | text_line_dataset_op_test.cc | 22 tstring LocalTempFilename() { in LocalTempFilename() 25 return tstring(path); in LocalTempFilename() 30 TextLineDatasetParams(std::vector<tstring> filenames, in TextLineDatasetParams() 42 CreateTensor<tstring>(TensorShape({num_files}), filenames_), in GetInputTensors() 43 CreateTensor<tstring>(TensorShape({}), {ToString(compression_type_)}), in GetInputTensors() 67 std::vector<tstring> filenames_; 74 Status CreateTestFiles(const std::vector<tstring>& filenames, in CreateTestFiles() 75 const std::vector<tstring>& contents, in CreateTestFiles() 93 std::vector<tstring> filenames = {LocalTempFilename(), LocalTempFilename()}; in TextLineDatasetParams1() 94 std::vector<tstring> contents = { in TextLineDatasetParams1() [all …]
|
D | tf_record_dataset_op_test.cc | 24 TFRecordDatasetParams(std::vector<tstring> filenames, in TFRecordDatasetParams() 36 CreateTensor<tstring>(TensorShape({num_files}), filenames_), in GetInputTensors() 37 CreateTensor<tstring>(TensorShape({}), {ToString(compression_type_)}), in GetInputTensors() 61 std::vector<tstring> filenames_; 68 Status CreateTestFiles(const std::vector<tstring>& filenames, in CreateTestFiles() 88 std::vector<tstring> filenames = { in TFRecordDatasetParams1() 106 std::vector<tstring> filenames = { in TFRecordDatasetParams2() 124 std::vector<tstring> filenames = { in TFRecordDatasetParams3() 144 CreateTensors<tstring>( in GetNextTestCases() 147 CreateTensors<tstring>( in GetNextTestCases() [all …]
|
D | fixed_length_record_dataset_op_test.cc | 23 tstring LocalTempFilename() { in LocalTempFilename() 26 return tstring(path); in LocalTempFilename() 31 FixedLengthRecordDatasetParams(const std::vector<tstring>& filenames, in FixedLengthRecordDatasetParams() 50 CreateTensor<tstring>(TensorShape({num_files}), filenames_), in GetInputTensors() 55 CreateTensor<tstring>(TensorShape({}), {ToString(compression_type_)})}; in GetInputTensors() 79 std::vector<tstring> filenames_; 89 Status CreateTestFiles(const std::vector<tstring>& filenames, in CreateTestFiles() 114 std::vector<tstring> filenames = {LocalTempFilename(), LocalTempFilename()}; in FixedLengthRecordDatasetParams1() 135 std::vector<tstring> filenames = {LocalTempFilename(), LocalTempFilename()}; in FixedLengthRecordDatasetParams2() 155 std::vector<tstring> filenames = {LocalTempFilename(), LocalTempFilename()}; in FixedLengthRecordDatasetParams3() [all …]
|
D | parallel_interleave_dataset_op_test.cc | 229 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams5() 254 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams6() 279 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams7() 304 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams8() 329 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams9() 354 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams10() 379 /*components=*/{CreateTensor<tstring>( in LongCycleDeterministicParams() 556 CreateTensors<tstring>( in GetNextTestCases() 563 CreateTensors<tstring>( in GetNextTestCases() 570 CreateTensors<tstring>( in GetNextTestCases() [all …]
|
/external/tensorflow/tensorflow/c/kernels/ |
D | summary_op_test.cc | 89 &summary, ctx.mutable_output(0)->scalar<tstring>()())); in TestScalarSummaryOp() 101 tags.vec<tstring>()(0) = "tag1"; in TEST() 102 tags.vec<tstring>()(1) = "tag2"; in TEST() 103 tags.vec<tstring>()(2) = "tag3"; in TEST() 118 tags.vec<tstring>()(0) = "tag1"; in TEST() 119 tags.vec<tstring>()(1) = "tag2"; in TEST() 120 tags.vec<tstring>()(2) = "tag3"; in TEST() 135 tags.vec<tstring>()(0) = "tag1"; in TEST() 136 tags.vec<tstring>()(1) = "tag2"; in TEST() 137 tags.vec<tstring>()(2) = "tag3"; in TEST() [all …]
|
/external/python/cpython3/Tools/i18n/ |
D | pygettext.py | 321 def __call__(self, ttype, tstring, stup, etup, line): argument 326 self.__state(ttype, tstring, stup[0]) 328 def __waiting(self, ttype, tstring, lineno): argument 334 if ttype == tokenize.STRING and is_literal_string(tstring): 335 self.__addentry(safe_eval(tstring), lineno, isdocstring=1) 341 if ttype == tokenize.NAME and tstring in ('class', 'def'): 344 if ttype == tokenize.NAME and tstring in opts.keywords: 347 def __suiteseen(self, ttype, tstring, lineno): argument 350 if tstring == ':' and self.__enclosurecount == 0: 353 elif tstring in '([{': [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_codecencodings_jp.py | 11 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_CP932 45 tstring = multibytecodec_support.load_teststring('euc_jisx0213') variable in Test_EUC_JIS_2004 55 tstring = multibytecodec_support.load_teststring('euc_jisx0213') variable in Test_EUC_JISX0213 65 tstring = multibytecodec_support.load_teststring('euc_jp') variable in Test_EUC_JP_COMPAT 79 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_SJIS_COMPAT 93 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_SJIS_2004 111 tstring = multibytecodec_support.load_teststring('shift_jisx0213') variable in Test_SJISX0213
|
/external/tensorflow/tensorflow/core/util/ |
D | example_proto_fast_parsing.h | 56 tstring feature_name; 74 tstring feature_name; 86 tstring feature_name; 137 gtl::ArraySlice<tstring> serialized, 138 gtl::ArraySlice<tstring> example_names, 155 gtl::ArraySlice<tstring> serialized, gtl::ArraySlice<tstring> example_names,
|