Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/kernel_tests/
Dstring_to_hash_bucket_op_test.py31 input_string = array_ops.placeholder(dtypes.string)
32 output = string_ops.string_to_hash_bucket_fast(input_string, 1)
33 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
39 input_string = array_ops.placeholder(dtypes.string)
40 output = string_ops.string_to_hash_bucket_fast(input_string, 10)
41 result = output.eval(feed_dict={input_string: ['a', 'b', 'c', 'd']})
51 input_string = array_ops.placeholder(dtypes.string)
52 output = string_ops.string_to_hash_bucket(input_string, 1)
53 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
59 input_string = array_ops.placeholder(dtypes.string)
[all …]
Dstring_to_number_op_test.py34 input_string = array_ops.placeholder(dtypes.string)
36 input_string, out_type=tf_type)
40 result, = output.eval(feed_dict={input_string: [instr]})
46 output.eval(feed_dict={input_string: [instr]})
Dlookup_ops_test.py49 input_string = constant_op.constant(["brain", "salad", "tank"])
50 output = table.lookup(input_string)
67 input_string = constant_op.constant(
69 output = table.lookup(input_string)
86 input_string = constant_op.constant(["brain", "salad", "tank"])
87 output = table.lookup(input_string)
103 input_string = constant_op.constant(["brain", "salad", "tank"])
104 output = table.lookup(input_string)
127 input_string = constant_op.constant(["brain", "salad", "tank"])
128 output1 = table1.lookup(input_string)
[all …]
/external/libchrome/base/strings/
Dstring_number_conversions_unittest.cc155 std::string input_string(input, arraysize(input) - 1); in TEST() local
157 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
160 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
220 std::string input_string(input, arraysize(input) - 1); in TEST() local
222 EXPECT_FALSE(StringToUint(input_string, &output)); in TEST()
225 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
290 std::string input_string(input, arraysize(input) - 1); in TEST() local
292 EXPECT_FALSE(StringToInt64(input_string, &output)); in TEST()
295 string16 utf16_input = UTF8ToUTF16(input_string); in TEST()
357 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.py54 input_string = constant_op.constant(["brain", "salad", "tank"])
55 output = table.lookup(input_string)
72 input_string = constant_op.constant(
74 output = table.lookup(input_string)
92 input_string = constant_op.constant(["brain", "salad", "tank"])
93 output = table.lookup(input_string)
109 input_string = constant_op.constant(["brain", "salad", "tank"])
110 output = table.lookup(input_string)
133 input_string = constant_op.constant(["brain", "salad", "tank"])
134 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.py49 input_string = constant_op.constant([11, 12, 14], dtypes.int64)
50 output = table.lookup(input_string)
74 input_string = constant_op.constant([[11, 12], [13, 14], [11, 14]],
76 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/skqp/tools/
Dmisc_utils.py46 def search_within_string(input_string, pattern, default=None): argument
57 match = re.search(pattern, input_string)
/external/skia/tools/
Dmisc_utils.py46 def search_within_string(input_string, pattern, default=None): argument
57 match = re.search(pattern, input_string)
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py172 def _TokensForInput(self, input_string): argument
175 lexer.input(input_string)
183 def _SingleTokenForInput(self, input_string): argument
186 toks = self._TokensForInput(input_string)
/external/libmojo/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/vpx/src/
Dsvc_encodeframe.c159 char *input_string; in parse_layer_options_from_string() local
171 input_string = strdup(input); in parse_layer_options_from_string()
172 token = strtok_r(input_string, delim, &save_ptr); in parse_layer_options_from_string()
189 free(input_string); in parse_layer_options_from_string()
201 char *input_string; in parse_options() local
210 input_string = strdup(options); in parse_options()
213 option_name = strtok_r(input_string, "=", &input_ptr); in parse_options()
259 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.cc303 string input_string; in TEST_F() local
304 input_graph.SerializeToString(&input_string); in TEST_F()
308 input_string, num_bits, "QuantizeAndDequantizeV2", &result_string)); in TEST_F()
/external/v8/src/
Dheap-symbols.h91 V(input_string, "input") \
Dbootstrapper.cc2170 SimpleInstallGetterSetter(regexp_fun, factory->input_string(), in InitializeGlobal()
4205 Descriptor d = Descriptor::DataField(factory()->input_string(), in InstallNatives()
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Destimator_test.py1367 input_string = constant_op.constant(['brain', 'salad', 'tank'])
1368 output = table.lookup(input_string)
1377 input_string = constant_op.constant(['brain', 'salad', 'tank'])
1378 output = table.lookup(input_string)