MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _reverse

Function _reverse

tensorflow/python/ops/rnn.py:474–482  ·  view source on GitHub ↗
(input_, seq_lengths, seq_axis, batch_axis)

Source from the content-addressed store, hash-verified

472 batch_axis = 1
473
474 def _reverse(input_, seq_lengths, seq_axis, batch_axis):
475 if seq_lengths is not None:
476 return array_ops.reverse_sequence(
477 input=input_,
478 seq_lengths=seq_lengths,
479 seq_axis=seq_axis,
480 batch_axis=batch_axis)
481 else:
482 return array_ops.reverse(input_, axis=[seq_axis])
483
484 with vs.variable_scope("bw") as bw_scope:
485

Callers 2

_map_reverseFunction · 0.70

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected