/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 | summary_op_test.cc | 63 AddInputFromArray<tstring>(TensorShape({3}), {"tag1", "tag2", "tag3"}); in TEST_F() 71 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 83 AddInputFromArray<tstring>(TensorShape({3}), {"tag1", "tag2", "tag3"}); in TEST_F() 91 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 103 AddInputFromList<tstring>(TensorShape({3}), {"tag1", "tag2", "tag3"}); in TEST_F() 111 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 123 AddInputFromArray<tstring>(TensorShape({2}), {"tag1", "tag2"}); in TEST_F() 133 AddInputFromArray<tstring>(TensorShape({2, 1}), {"tag1", "tag2"}); in TEST_F() 145 AddInputFromArray<tstring>(TensorShape({2}), {"tag1", "tag2"}); in TEST_F() 171 AddInputFromArray<tstring>(TensorShape({}), {"taghisto"}); 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 | 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()
|
D | serialize_sparse_op.cc | 98 bool SerializeSparseOp<tstring>::IsExpensive() { in IsExpensive() 107 Status SerializeSparseOp<tstring>::Initialize(Tensor* result) { in Initialize() 113 Status SerializeSparseOp<tstring>::Serialize(const Tensor& input, in Serialize() 114 tstring* result) { in Serialize() 123 .TypeConstraint<tstring>("out_type"), 124 SerializeSparseOp<tstring>); 148 struct SerializeGroups<T, tstring> { 152 auto serialized_sparse_t = serialized_sparse->matrix<tstring>(); in operator ()() 156 auto serialize = [](const Tensor& input, tstring* result) { in operator ()() 162 tstring serialized_shape; in operator ()() [all …]
|
D | summary_image_op_test.cc | 81 AddInputFromArray<tstring>(TensorShape({}), {"tag"}); in TEST_F() 90 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 104 AddInputFromArray<tstring>(TensorShape({}), {"tag"}); in TEST_F() 113 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); in TEST_F() 124 AddInputFromArray<tstring>(TensorShape({}), {"tag"}); in TEST_F() 145 ParseProtoUnlimited(&summary, out_tensor->scalar<tstring>()()); 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 | 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;
|
D | numeric_types.h | 88 struct NumTraits<tensorflow::tstring> : GenericNumTraits<tensorflow::tstring> { 99 static inline tensorflow::tstring epsilon(); 100 static inline tensorflow::tstring dummy_precision(); 101 static inline tensorflow::tstring lowest(); 102 static inline tensorflow::tstring highest(); 103 static inline tensorflow::tstring infinity(); 104 static inline tensorflow::tstring quiet_NaN();
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | text_line_dataset_op_test.cc | 24 TextLineDatasetParams(std::vector<tstring> filenames, in TextLineDatasetParams() 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() 69 const std::vector<tstring>& contents, in CreateTestFiles() 87 std::vector<tstring> filenames = { in TextLineDatasetParams1() 90 std::vector<tstring> contents = { in TextLineDatasetParams1() 106 std::vector<tstring> filenames = { in TextLineDatasetParams2() 109 std::vector<tstring> contents = { in TextLineDatasetParams2() [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 | 25 FixedLengthRecordDatasetParams(const std::vector<tstring>& filenames, in FixedLengthRecordDatasetParams() 44 CreateTensor<tstring>(TensorShape({num_files}), filenames_), in GetInputTensors() 49 CreateTensor<tstring>(TensorShape({}), {ToString(compression_type_)})}; in GetInputTensors() 73 std::vector<tstring> filenames_; 83 Status CreateTestFiles(const std::vector<tstring>& filenames, in CreateTestFiles() 108 std::vector<tstring> filenames = { in FixedLengthRecordDatasetParams1() 131 std::vector<tstring> filenames = { in FixedLengthRecordDatasetParams2() 153 std::vector<tstring> filenames = { in FixedLengthRecordDatasetParams3() 178 CreateTensors<tstring>(TensorShape({}), in GetNextTestCases() 181 CreateTensors<tstring>(TensorShape({}), in GetNextTestCases() [all …]
|
D | parallel_interleave_dataset_op_test.cc | 219 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams5() 244 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams6() 269 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams7() 294 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams8() 319 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams9() 344 /*components=*/{CreateTensor<tstring>( in ParallelInterleaveDatasetParams10() 367 /*components=*/{CreateTensor<tstring>( in LongCycleDeteriministicParams() 490 CreateTensors<tstring>( in GetNextTestCases() 497 CreateTensors<tstring>( in GetNextTestCases() 504 CreateTensors<tstring>( in GetNextTestCases() [all …]
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_rpc_factory.cc | 37 const tstring* request_msg, tstring* response_msg, in GrpcCall() 38 int32* status_code, tstring* status_message) in GrpcCall() 62 const tstring& request() const { return *request_msg_; } in request() 63 tstring* response() const { return response_msg_; } in response() 70 const tstring* request_msg_; 71 tstring* response_msg_; 73 tstring* status_message_; 171 auto request = request_t.flat<tstring>(); in CreateCall() 172 auto get_request_ptr = [&request](int64 ix) -> const tstring* { in CreateCall() 175 auto response = response_t->flat<tstring>(); in CreateCall() [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,
|
/external/python/cpython2/Tools/i18n/ |
D | pygettext.py | 356 def __call__(self, ttype, tstring, stup, etup, line): argument 361 self.__state(ttype, tstring, stup[0]) 363 def __waiting(self, ttype, tstring, lineno): argument 370 self.__addentry(safe_eval(tstring), lineno, isdocstring=1) 376 if ttype == tokenize.NAME and tstring in ('class', 'def'): 379 if ttype == tokenize.NAME and tstring in opts.keywords: 382 def __suiteseen(self, ttype, tstring, lineno): argument 384 if ttype == tokenize.OP and tstring == ':': 387 def __suitedocstring(self, ttype, tstring, lineno): argument 390 self.__addentry(safe_eval(tstring), lineno, isdocstring=1) [all …]
|