/external/tensorflow/tensorflow/python/data/util/ |
nest.py | 159 def pack_sequence_as(structure, flat_sequence): 162 If `structure` is a scalar, `flat_sequence` must be a single-element list; 163 in this case the return value is `flat_sequence[0]`. 168 flat_sequence: flat sequence to pack. 171 packed: `flat_sequence` converted to have the same recursive structure as 177 if not (is_sequence(flat_sequence) or isinstance(flat_sequence, list)): 178 raise TypeError("flat_sequence must be a sequence") 181 if len(flat_sequence) != 1: 182 raise ValueError("Structure is a scalar but len(flat_sequence) == %d > 1 [all...] |
/external/tensorflow/tensorflow/python/util/ |
nest.py | 387 def pack_sequence_as(structure, flat_sequence, expand_composites=False): 390 If `structure` is a scalar, `flat_sequence` must be a single-element list; 391 in this case the return value is `flat_sequence[0]`. 406 flat_sequence: flat sequence to pack. 411 packed: `flat_sequence` converted to have the same recursive structure as 415 ValueError: If `flat_sequence` and `structure` have different 420 if not is_seq(flat_sequence): 421 raise TypeError("flat_sequence must be a sequence") 424 if len(flat_sequence) != 1: 425 raise ValueError("Structure is a scalar but len(flat_sequence) == %d > 1 [all...] |
/external/tensorflow/tensorflow/python/keras/saving/ |
saving_utils.py | 83 flat_sequence=flat_input_specs)
|
/external/tensorflow/tensorflow/python/ops/ |
rnn.py | 302 structure=zero_output, flat_sequence=final_output) 304 structure=state, flat_sequence=final_state) 346 results = [nest.pack_sequence_as(structure=input_, flat_sequence=flat_result) 662 inputs = nest.pack_sequence_as(structure=inputs, flat_sequence=flat_input) 766 flat_sequence=flat_zero_output) [all...] |
custom_gradient.py | 253 structure=result, flat_sequence=all_tensors[:len(flat_result)])
|
ctc_ops.py | [all...] |
control_flow_ops.py | [all...] |
/external/tensorflow/tensorflow/python/framework/ |
func_graph.py | [all...] |
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/ops/ |
seq2seq.py | 406 structure=encoder_state, flat_sequence=state_list) 535 structure=zero_state, flat_sequence=state_list) [all...] |
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/ |
rnn.py | 257 inputs = nest.pack_sequence_as(structure=inputs, flat_sequence=flat_input)
|
/external/tensorflow/tensorflow/contrib/compiler/ |
xla.py | 331 structure=inputs, flat_sequence=flat_inputs) 380 structure=outputs, flat_sequence=output_tensors)
|
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/ |
head.py | 206 flat_sequence=[tensor for _, _, tensor in numbered_state])
|
/external/tensorflow/tensorflow/python/eager/ |
function.py | [all...] |
/external/tensorflow/tensorflow/python/tpu/ |
tpu.py | [all...] |