Home
last modified time | relevance | path

Searched refs:flatten (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/external/clang/test/SemaCXX/
Dattr-flatten.cpp3 int i __attribute__((flatten)); // expected-error {{'flatten' attribute only applies to functions}}
5 void f1() __attribute__((flatten));
6 void f2() __attribute__((flatten(1))); // expected-error {{'flatten' attribute takes no arguments}}
9 void tf1() __attribute__((flatten));
11 int f3(int __attribute__((flatten)), int); // expected-error{{'flatten' attribute only applies to f…
14 …int f __attribute__((flatten)); // expected-error{{'flatten' attribute only applies to functions}}
15 void mf1() __attribute__((flatten));
16 static void mf2() __attribute__((flatten));
19 int ci [[gnu::flatten]]; // expected-error {{'flatten' attribute only applies to functions}}
21 [[gnu::flatten]] void cf1();
[all …]
/external/tensorflow/tensorflow/python/data/util/
Dsparse.py37 return any(c is sparse_tensor.SparseTensor for c in nest.flatten(classes))
54 for shape, c in zip(nest.flatten(shapes), nest.flatten(classes))
73 for ty, c in zip(nest.flatten(types), nest.flatten(classes))
95 nest.flatten(tensors), nest.flatten(types), nest.flatten(shapes),
96 nest.flatten(classes))
115 for tensor in nest.flatten(tensors)
132 for tensor in nest.flatten(tensors)
150 for tensor in nest.flatten(tensors)
Dnest_test.py38 self.assertEqual(nest.flatten(structure), [3, 4, 5, 6, 7, 9, 10, 8])
45 self.assertEqual(nest.flatten(structure), flat)
53 self.assertEqual([5], nest.flatten(5))
54 self.assertEqual([np.array([5])], nest.flatten(np.array([5])))
73 ordered_flat = nest.flatten(ordered)
74 plain_flat = nest.flatten(plain)
109 flattened = nest.flatten(mess)
142 self.assertEqual([st], nest.flatten(single_value))
143 self.assertEqual([[st, st, st]], nest.flatten(list_of_values))
144 self.assertEqual([st, st, st], nest.flatten(nest_of_values))
[all …]
Dstructure.py271 flat_types = nest.flatten(output_types)
272 flat_shapes = nest.flatten(output_shapes)
273 flat_classes = nest.flatten(output_classes)
306 self._flat_nested_structure = nest.flatten(nested_structure)
309 for s in nest.flatten(nested_structure):
337 nest.flatten(self._nested_structure),
338 nest.flatten(other._nested_structure)))
401 Structure.from_value(sub_value) for sub_value in nest.flatten(value)
Dsparse_test.py75 for a, b in zip(nest.flatten(a), nest.flatten(b)):
327 for a, e in zip(nest.flatten(actual), nest.flatten(expected)):
357 for a, e in zip(nest.flatten(actual), nest.flatten(expected)):
/external/python/cpython3/Lib/test/test_email/
Dtest_generator.py90 g.flatten(msg)
97 g.flatten(msg)
105 g.flatten(msg)
113 g.flatten(msg)
121 g.flatten(msg)
130 g.flatten(msg)
139 g.flatten(msg, linesep='\n')
161 g.flatten(msg)
168 g.flatten(msg)
191 g.flatten(msg)
[all …]
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dscan_ops.py45 for i, t in enumerate(nest.flatten(initial_state))
76 nest.flatten(new_state_classes),
77 nest.flatten(old_state_classes)):
88 nest.flatten(new_state_types), nest.flatten(old_state_types)):
101 flat_state_shapes = nest.flatten(old_state_shapes)
102 flat_new_state_shapes = nest.flatten(new_state_shapes)
/external/tensorflow/tensorflow/python/ops/
Drnn.py117 inferred_dtypes = [element.dtype for element in nest.flatten(state)]
227 flat_state = nest.flatten(state)
228 flat_zero_output = nest.flatten(zero_output)
261 flat_new_state = nest.flatten(new_state)
262 flat_new_output = nest.flatten(new_output)
278 new_state = nest.flatten(new_state)
279 new_output = nest.flatten(new_output)
325 flat_input_seq = tuple(nest.flatten(input_) for input_ in input_seq)
617 flat_input = nest.flatten(inputs)
729 flat_input = nest.flatten(inputs)
[all …]
/external/tensorflow/tensorflow/contrib/recurrent/python/ops/
Dfunctional_rnn.py35 for x in nest.flatten(struct):
42 as_list = nest.flatten(struct)
43 template_as_list = nest.flatten(struct_template)
77 state_list = nest.flatten(state1)
129 extended_state0_flat = nest.flatten(extended_state0)
171 return nest.flatten(state)[self._output_state_idx]
202 for state_var in nest.flatten(acc_state):
250 nest.flatten(extended_final_state))
256 nest.flatten(extended_acc_state))
289 inputs_flat = nest.flatten(inputs)
Drecurrent.py101 acc_lst = nest.flatten(struct_acc)
102 x_lst = nest.flatten(struct_x)
127 xs = nest.flatten(struct)
135 return nest.flatten(struct)
206 list_x = nest.flatten(struct_x)
207 list_y = nest.flatten(struct_y)
216 return [x.dtype for x in nest.flatten(struct)]
229 list_xs = nest.flatten(xs)
230 list_dxs = nest.flatten(dxs)
481 return nest.flatten(orig_state0)
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Ddata.py69 data_files.extend(item.flatten(installer))
106 def flatten(self, installer): member in Data
137 def flatten(self, installer): member in Documentation
141 return Data.flatten(self, installer)
161 def flatten(self, installer): member in Manpages
165 return Documentation.flatten(self, installer)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Ddata.py69 data_files.extend(item.flatten(installer))
106 def flatten(self, installer): member in Data
137 def flatten(self, installer): member in Documentation
141 return Data.flatten(self, installer)
161 def flatten(self, installer): member in Manpages
165 return Documentation.flatten(self, installer)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Ddata.py69 data_files.extend(item.flatten(installer))
106 def flatten(self, installer): member in Data
137 def flatten(self, installer): member in Documentation
141 return Data.flatten(self, installer)
161 def flatten(self, installer): member in Manpages
165 return Documentation.flatten(self, installer)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Ddata.py69 data_files.extend(item.flatten(installer))
106 def flatten(self, installer): member in Data
137 def flatten(self, installer): member in Documentation
141 return Data.flatten(self, installer)
161 def flatten(self, installer): member in Manpages
165 return Documentation.flatten(self, installer)
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dcontrol_flow_ops.py61 flat_loop_fn_dtypes = nest.flatten(loop_fn_dtypes)
66 fn_output = nest.flatten(loop_fn(i))
211 for loop_fn_output in nest.flatten(loop_fn_outputs):
226 flattened_loop_fn_outputs = nest.flatten(loop_fn_outputs)
239 return nest.flatten(loop_fn(i + offset, pfor_config=pfor_config))
241 return nest.flatten(loop_fn(i + offset))
260 return nest.pack_sequence_as(loop_fn_outputs, nest.flatten(outputs))
/external/python/cpython2/Lib/compiler/
Dast.py7 def flatten(seq): function
12 for elt2 in flatten(elt):
19 return [n for n in flatten(seq) if isinstance(n, Node)]
74 return tuple(flatten(self.nodes))
106 return tuple(flatten(self.nodes))
137 return tuple(flatten(self.nodes))
177 children.extend(flatten(self.nodes))
226 return tuple(flatten(self.nodes))
242 return tuple(flatten(self.nodes))
258 return tuple(flatten(self.nodes))
[all …]
/external/tensorflow/tensorflow/contrib/framework/python/ops/
Dscript_ops.py113 flat_output_types = nest.flatten(output_types)
115 flat_args = nest.flatten(args)
125 return nest.flatten(ret)
139 flattened_shapes = nest.flatten(output_shapes)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_eager.py56 outputs = nest.flatten(outputs)
57 targets = nest.flatten(targets)
102 for input_t in nest.flatten(inputs)):
107 outs = nest.flatten(outs)
110 targets = nest.flatten(targets)
277 total_loss = nest.flatten(total_loss)
327 total_loss = nest.flatten(total_loss)
Dnetwork.py224 if isinstance(inputs, list) and len(nest.flatten(inputs)) == 1:
226 if isinstance(outputs, list) and len(nest.flatten(outputs)) == 1:
230 self.inputs = nest.flatten(inputs)
231 self.outputs = nest.flatten(outputs)
404 trackable_layer_utils.has_weights(v) for v in nest.flatten(value)):
878 if len(nest.flatten(input_shape)) != len(nest.flatten(self._input_layers)):
889 for layer, shape in zip(self._input_layers, nest.flatten(input_shape)):
926 for j, shape in enumerate(nest.flatten(layer_output_shapes)):
965 inputs = nest.flatten(inputs)
969 masks = nest.flatten(mask)
[all …]
/external/tensorflow/tensorflow/python/framework/
Dfunc_graph.py609 flat_args = nest.flatten(args)
628 flat_func_args = nest.flatten(func_args)
629 flat_func_kwargs = nest.flatten(func_kwargs)
709 for arg in nest.flatten(func_args) + nest.flatten(func_kwargs):
728 for x in flatten(func_graph.structured_outputs)
781 for arg1, arg2 in zip(nest.flatten(n1), nest.flatten(n2)):
786 def flatten(sequence): function
799 flat_sequence = nest.flatten(sequence, expand_composites=True)
820 flattened_structure = nest.flatten(structure, expand_composites=True)
880 len_flat_args = len(nest.flatten(args))
[all …]
/external/tensorflow/tensorflow/contrib/rpc/python/kernel_tests/
Drpc_op_test_base.py285 flatten = lambda x: list(itertools.chain.from_iterable(x)) function
287 addresses = flatten([[
298 flatten([errors.OK, errors.UNAVAILABLE] for _ in range(10)),
305 flatten = lambda x: list(itertools.chain.from_iterable(x)) function
307 methods = flatten(
316 flatten([errors.OK, errors.UNIMPLEMENTED] for _ in range(10)),
323 flatten = lambda x: list(itertools.chain.from_iterable(x)) function
325 addresses = flatten([[
339 flatten([errors.OK, errors.UNAVAILABLE] for _ in range(10)),
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/
Dsharded_mutable_dense_hashtable_test.py115 self.assertAllEqual(set([-2, 10, 12]), set(keys_list[0].eval().flatten()))
116 self.assertAllEqual(set([-2, 11]), set(keys_list[1].eval().flatten()))
118 self.assertAllEqual(set([0, 2, 4]), set(values_list[0].eval().flatten()))
119 self.assertAllEqual(set([0, 3]), set(values_list[1].eval().flatten()))
/external/skia/src/effects/
DSkOpPE.h19 void flatten(SkWriteBuffer&) const override;
37 void flatten(SkWriteBuffer&) const override;
53 void flatten(SkWriteBuffer&) const override;
/external/skqp/src/effects/
DSkOpPE.h19 void flatten(SkWriteBuffer&) const override;
37 void flatten(SkWriteBuffer&) const override;
53 void flatten(SkWriteBuffer&) const override;
/external/deqp-deps/glslang/Test/
Dspv.controlFlowAttributes.frag14 [[flatten]] if (cond) { } else { }
24 [[flatten(3)]] if (cond) { } else { }
35 flatten

12345678910>>...25