parameters: (self)
docstring: Compute self._construct_inputs_names and self._construct_inputs_num
docstring_summary: Compute self._construct_inputs_names and self._construct_inputs_num
docstring_tokens: Compute self . _construct_inputs_names and self . _construct_inputs_num
function: def _get_construct_inputs_number_and_name(self):
          """Compute self._construct_inputs_names and self._construct_inputs_num"""
          from mindspore._extends.parse.parser import get_parse_method_of_class
  
          fn = get_parse_method_of_class(self)
          self.argspec = inspect.getfullargspec(fn)
          self._construct_inputs_num = fn.__code__.co_argcount
          self._construct_inputs_names = fn.__code__.co_varnames
  
          if self._construct_inputs_num <= 0:
              raise ValueError(f"The number of inputs must be greater than 0, but got {self._construct_inputs_num}.")
          if self._construct_inputs_names[0] != 'self':
              raise ValueError(f"First member of fn function must be self, but got {self._construct_inputs_names[0]}")
          if self._construct_inputs_num - 1 > len(self._construct_inputs_names):
              raise ValueError(f"Num of inputs must be greater than num of fn function members, num of inputs is \
                  {self._construct_inputs_names - 1}, num of fn function members is {len(self._construct_inputs_names)}")
          self._construct_inputs_names = self._construct_inputs_names[1:self._construct_inputs_num]
          self._construct_inputs_num = self._construct_inputs_num - 1
function_tokens: def _get_construct_inputs_number_and_name ( self ) : from mindspore . _extends . parse . parser import get_parse_method_of_class fn = get_parse_method_of_class ( self ) self . argspec = inspect . getfullargspec ( fn ) self . _construct_inputs_num = fn . __code__ . co_argcount self . _construct_inputs_names = fn . __code__ . co_varnames if self . _construct_inputs_num <= 0 : raise ValueError ( f"The number of inputs must be greater than 0, but got {self._construct_inputs_num}." ) if self . _construct_inputs_names [ 0 ] != 'self' : raise ValueError ( f"First member of fn function must be self, but got {self._construct_inputs_names[0]}" ) if self . _construct_inputs_num - 1 > len ( self . _construct_inputs_names ) : raise ValueError ( f"Num of inputs must be greater than num of fn function members, num of inputs is \
                  {self._construct_inputs_names - 1}, num of fn function members is {len(self._construct_inputs_names)}" ) self . _construct_inputs_names = self . _construct_inputs_names [ 1 : self . _construct_inputs_num ] self . _construct_inputs_num = self . _construct_inputs_num - 1