MCPcopy Create free account
hub / github.com/pytorch/pytorch / _prepare_output_sequence

Method _prepare_output_sequence

caffe2/python/rnn_cell.py:865–872  ·  view source on GitHub ↗
(self, model, state_outputs)

Source from the content-addressed store, hash-verified

863 return output
864
865 def _prepare_output_sequence(self, model, state_outputs):
866 output = self.internal_cell._prepare_output_sequence(
867 model,
868 state_outputs,
869 )
870 if self.dropout_ratio is not None:
871 output = self._apply_dropout(model, output)
872 return output
873
874 def _apply_dropout(self, model, output):
875 if self.dropout_ratio and not self.forward_only:

Callers

nothing calls this directly

Calls 2

_apply_dropoutMethod · 0.95

Tested by

no test coverage detected