MCPcopy Create free account
hub / github.com/alibaba/bigcomputing / _reverse

Function _reverse

DIEN/rnn.py:409–415  ·  view source on GitHub ↗
(input_, seq_lengths, seq_dim, batch_dim)

Source from the content-addressed store, hash-verified

407 batch_dim = 1
408
409 def _reverse(input_, seq_lengths, seq_dim, batch_dim):
410 if seq_lengths is not None:
411 return array_ops.reverse_sequence(
412 input=input_, seq_lengths=seq_lengths,
413 seq_dim=seq_dim, batch_dim=batch_dim)
414 else:
415 return array_ops.reverse(input_, axis=[seq_dim])
416
417 with vs.variable_scope("bw") as bw_scope:
418 inputs_reverse = _reverse(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected