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

Function _reverse

modelzoo/features/embedding_variable/dien/script/rnn.py:412–418  ·  view source on GitHub ↗
(input_, seq_lengths, seq_dim, batch_dim)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected