parameters: (cls, float_module: Float.Linear)
return_statement: return qmod
docstring: r"""
          Return a :class:`~.QATModule` instance converted from
          a float :class:`~.Module` instance.
docstring_summary: r"""
          Return a :class:`~.QATModule` instance converted from
          a float :class:`~.Module` instance.
docstring_tokens: r Return a : class : ~ . QATModule instance converted from a float : class : ~ . Module instance .
function: def from_float_module(cls, float_module: Float.Linear):
          r"""
          Return a :class:`~.QATModule` instance converted from
          a float :class:`~.Module` instance.
          """
          qmod = cls(
              float_module.in_features, float_module.out_features, name=float_module.name
          )
          qmod.weight = float_module.weight
          qmod.bias = float_module.bias
          return qmod
function_tokens: def from_float_module ( cls , float_module : Float . Linear ) : qmod = cls ( float_module . in_features , float_module . out_features , name = float_module . name ) qmod . weight = float_module . weight qmod . bias = float_module . bias return qmod