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

Method apply

caffe2/python/rnn_cell.py:142–147  ·  view source on GitHub ↗
(self, model, input_t, seq_lengths, states, timestep)

Source from the content-addressed store, hash-verified

140 return output, states_for_all_steps
141
142 def apply(self, model, input_t, seq_lengths, states, timestep):
143 input_t = self.prepare_input(model, input_t)
144 states = self._apply(
145 model, input_t, seq_lengths, states, timestep)
146 output = self._prepare_output(model, states)
147 return output, states
148
149 def _apply(
150 self,

Callers 1

forwardMethod · 0.45

Calls 3

prepare_inputMethod · 0.95
_applyMethod · 0.95
_prepare_outputMethod · 0.95

Tested by

no test coverage detected