megengine.quantization.LSQ.named_parameters

LSQ.named_parameters(prefix=None, recursive=True, **kwargs)

Returns an iterable for key Parameter pairs of the module, where key is the dotted path from this module to the Parameter.

参数
  • prefix (Optional[str]) – prefix prepended to the keys.

  • recursive (bool) – if True, returns all Parameter within this module, else only returns Parameter that are direct attributes of this module.

返回类型

Iterable[Tuple[str, Parameter]]