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

Method _prepare_output

caffe2/python/rnn_cell.py:254–258  ·  view source on GitHub ↗

Allows arbitrary post-processing of primary output.

(self, model, states)

Source from the content-addressed store, hash-verified

252 raise NotImplementedError('Abstract method')
253
254 def _prepare_output(self, model, states):
255 '''
256 Allows arbitrary post-processing of primary output.
257 '''
258 return states[self.get_output_state_index()]
259
260 def _prepare_output_sequence(self, model, state_outputs):
261 '''

Callers 5

applyMethod · 0.95
_prepare_outputMethod · 0.45
_applyMethod · 0.45
_prepare_outputMethod · 0.45
_applyMethod · 0.45

Calls 1

Tested by

no test coverage detected