paddlenlp/taskflow/text_generation.py
def _construct_input_spec(self):
        """
       Construct the input spec for the convert dygraph model to static model.
       """
        self._input_spec = [
            paddle.static.InputSpec(
                shape=[None, None], dtype="int64", name='token_ids')
        ]

       Construct the input spec for the convert dygraph model to static model.
       
Construct the input spec for the convert dygraph model to static model.
Construct the input spec for the convert dygraph model to static model .
def _construct_input_spec(self):
        self._input_spec = [
            paddle.static.InputSpec(
                shape=[None, None], dtype="int64", name='token_ids')
        ]
def _construct_input_spec ( self ) : self . _input_spec = [ paddle . static . InputSpec ( shape = [ None , None ] , dtype = "int64" , name = 'token_ids' ) ]
Construct the input spec for the convert dygraph model to static model.
Construct the input spec for the convert dygraph model to static model .
"""
       Construct the input spec for the convert dygraph model to static model.
       """
self