Home
last modified time | relevance | path

Searched refs:input_string (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dstring_to_hash_bucket_op_test.py33 input_string = array_ops.placeholder(dtypes.string)
34 output = string_ops.string_to_hash_bucket_fast(input_string, 1)
35 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
42 input_string = array_ops.placeholder(dtypes.string)
43 output = string_ops.string_to_hash_bucket_fast(input_string, 10)
44 result = output.eval(feed_dict={input_string: ['a', 'b', 'c', 'd']})
55 input_string = array_ops.placeholder(dtypes.string)
56 output = string_ops.string_to_hash_bucket(input_string, 1)
57 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
64 input_string = array_ops.placeholder(dtypes.string)
[all …]
Dlookup_ops_test.py77 input_string = constant_op.constant(["brain", "salad", "tank"])
78 output = table.lookup(input_string)
100 input_string = constant_op.constant([["brain", "salad"],
102 output = table.lookup(input_string)
118 input_string = constant_op.constant(["brain", "salad", "tank"])
119 output = table.lookup(input_string)
134 input_string = constant_op.constant(["brain", "salad", "tank"])
135 output = table.lookup(input_string)
159 input_string = constant_op.constant(["brain", "salad", "tank"])
160 output1 = table1.lookup(input_string)
[all …]
Dstring_to_number_op_test.py35 input_string = array_ops.placeholder(dtypes.string)
37 input_string, out_type=tf_type)
41 result, = output.eval(feed_dict={input_string: [instr]})
47 output.eval(feed_dict={input_string: [instr]})
/external/libchrome/base/strings/
Dstring_number_conversions_unittest.cc157 std::string input_string(input, arraysize(input) - 1); in TEST() local
159 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
162 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
222 std::string input_string(input, arraysize(input) - 1); in TEST() local
224 EXPECT_FALSE(StringToUint(input_string, &output)); in TEST()
227 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
292 std::string input_string(input, arraysize(input) - 1); in TEST() local
294 EXPECT_FALSE(StringToInt64(input_string, &output)); in TEST()
297 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
359 std::string input_string(input, arraysize(input) - 1); in TEST() local
[all …]
/external/perf_data_converter/src/quipper/
Dfile_reader_test.cc186 string input_string("The quick brown fox jumps over the lazy dog."); in TEST() local
189 ASSERT_TRUE(BufferToFile(input_file.path(), input_string)); in TEST()
194 EXPECT_TRUE(full_reader.ReadString(input_string.size(), &full_reader_output)); in TEST()
195 EXPECT_EQ(input_string.size(), full_reader.Tell()); in TEST()
196 EXPECT_EQ(input_string, full_reader_output); in TEST()
202 half_reader.ReadString(input_string.size() / 2, &half_reader_output)); in TEST()
203 EXPECT_EQ(input_string.size() / 2, half_reader.Tell()); in TEST()
204 EXPECT_EQ(input_string.substr(0, input_string.size() / 2), in TEST()
210 EXPECT_FALSE(past_end_reader.ReadString(input_string.size() + 1, in TEST()
217 string input_string_with_padding(input_string.begin(), input_string.end()); in TEST()
[all …]
Dsample_info_reader_test.cc64 string input_string = input.str(); in TEST() local
65 const event_t& event = *reinterpret_cast<const event_t*>(input_string.data()); in TEST()
124 string input_string = input.str(); in TEST() local
125 const event_t& event = *reinterpret_cast<const event_t*>(input_string.data()); in TEST()
198 string input_string = input.str(); in TEST() local
199 const event_t& event = *reinterpret_cast<const event_t*>(input_string.data()); in TEST()
249 string input_string = input.str(); in TEST() local
250 const event_t& event = *reinterpret_cast<const event_t*>(input_string.data()); in TEST()
291 string input_string = input.str(); in TEST() local
292 const event_t& event = *reinterpret_cast<const event_t*>(input_string.data()); in TEST()
[all …]
/external/tensorflow/tensorflow/contrib/lookup/
Dlookup_ops_test.py52 input_string = constant_op.constant(["brain", "salad", "tank"])
53 output = table.lookup(input_string)
76 input_string = constant_op.constant(
78 output = table.lookup(input_string)
96 input_string = constant_op.constant(["brain", "salad", "tank"])
97 output = table.lookup(input_string)
113 input_string = constant_op.constant(["brain", "salad", "tank"])
114 output = table.lookup(input_string)
137 input_string = constant_op.constant(["brain", "salad", "tank"])
138 output1 = table1.lookup(input_string)
[all …]
/external/python/cpython2/Lib/json/tests/
Dtest_encode_basestring_ascii.py27 for input_string, expect in CASES:
28 result = self.json.encoder.encode_basestring_ascii(input_string)
31 result, expect, fname, input_string))
/external/python/cpython3/Lib/test/test_json/
Dtest_encode_basestring_ascii.py23 for input_string, expect in CASES:
24 result = self.json.encoder.encode_basestring_ascii(input_string)
27 result, expect, fname, input_string))
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/
Dsharded_mutable_dense_hashtable_test.py56 input_string = constant_op.constant([11, 12, 14], dtypes.int64)
57 output = table.lookup(input_string)
83 input_string = constant_op.constant([[11, 12], [13, 14], [11, 14]],
85 output = table.lookup(input_string)
/external/pdfium/fxjs/
Dcjs_util_unittest.cpp12 const wchar_t* const input_string; in TEST() member
109 std::wstring input(cases[i].input_string); in TEST()
111 << cases[i].input_string; in TEST()
/external/skia/tools/
Dmisc_utils.py46 def search_within_string(input_string, pattern, default=None): argument
57 match = re.search(pattern, input_string)
/external/skqp/tools/
Dmisc_utils.py46 def search_within_string(input_string, pattern, default=None): argument
57 match = re.search(pattern, input_string)
/external/libchrome/base/json/
Djson_reader_fuzzer.cc18 base::StringPiece input_string(input.get(), size - 1); in LLVMFuzzerTestOneInput() local
24 base::JSONReader::ReadAndReturnError(input_string, options, &error_code, in LLVMFuzzerTestOneInput()
Dstring_escape_fuzzer.cc22 base::StringPiece input_string(input.get(), actual_size_char8); in LLVMFuzzerTestOneInput() local
24 base::EscapeJSONString(input_string, put_in_quotes, &escaped_string); in LLVMFuzzerTestOneInput()
Djson_correctness_fuzzer.cc35 base::StringPiece input_string(input.get(), size - 1); in LLVMFuzzerTestOneInput() local
39 input_string, options, &error_code, &error_message, &error_line, in LLVMFuzzerTestOneInput()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py169 def _TokensForInput(self, input_string): argument
172 lexer.input(input_string)
180 def _SingleTokenForInput(self, input_string): argument
183 toks = self._TokensForInput(input_string)
/external/libchrome/build/
Dgn_helpers.py66 def FromGNString(input_string): argument
102 parser = GNValueParser(input_string)
106 def FromGNArgs(input_string): argument
123 parser = GNValueParser(input_string)
/external/libvpx/libvpx/examples/
Dsvc_encodeframe.c145 char *input_string; in parse_layer_options_from_string() local
157 input_string = strdup(input); in parse_layer_options_from_string()
158 token = strtok_r(input_string, delim, &save_ptr); in parse_layer_options_from_string()
175 free(input_string); in parse_layer_options_from_string()
187 char *input_string; in parse_options() local
196 input_string = strdup(options); in parse_options()
199 option_name = strtok_r(input_string, "=", &input_ptr); in parse_options()
245 free(input_string); in parse_options()
/external/pdfium/core/fpdftext/
Dcpdf_linkextract_unittest.cpp95 const wchar_t* const input_string; in TEST() member
177 const wchar_t* const input = valid_cases[i].input_string; in TEST()
/external/tensorflow/tensorflow/core/graph/
Dquantize_training_test.cc304 string input_string; in TEST_F() local
305 input_graph.SerializeToString(&input_string); in TEST_F()
309 input_string, num_bits, "QuantizeAndDequantizeV2", &result_string)); in TEST_F()
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Destimator_test.py1369 input_string = constant_op.constant(['brain', 'salad', 'tank'])
1370 output = table.lookup(input_string)
1379 input_string = constant_op.constant(['brain', 'salad', 'tank'])
1380 output = table.lookup(input_string)
/external/v8/src/
Dheap-symbols.h111 V(input_string, "input") \
Dbootstrapper.cc2571 SimpleInstallGetterSetter(isolate_, regexp_fun, factory->input_string(), in InitializeGlobal()
5140 Descriptor d = Descriptor::DataField(isolate(), factory()->input_string(), in InstallNatives()