MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / initialize

Method initialize

python/paddle/nn/decode.py:81–94  ·  view source on GitHub ↗

r""" Called once before the decoding iterations. Parameters: inits: Argument provided by the caller. Returns: tuple: A tuple( :code:`(initial_inputs, initial_states, finished)` ). \ `initial_inputs` and `initial_states` both are a (po

(self, inits)

Source from the content-addressed store, hash-verified

79 """
80
81 def initialize(self, inits):
82 r"""
83 Called once before the decoding iterations.
84
85 Parameters:
86 inits: Argument provided by the caller.
87
88 Returns:
89 tuple: A tuple( :code:`(initial_inputs, initial_states, finished)` ). \
90 `initial_inputs` and `initial_states` both are a (possibly nested \
91 structure of) tensor variable[s], and `finished` is a tensor with \
92 bool data type.
93 """
94 raise NotImplementedError
95
96 def step(self, time, inputs, states, **kwargs):
97 r"""

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected