megengine.traced_module.expr.GetAttr¶
- class GetAttr(module, name, type=None, orig_name=None)[源代码]¶
- Getattrrepresents the fetch of an attribute from the- Modulehierarchy.- Attributes - The - TreeDefused to reconstruct the input of the operation.- Get the the positional arguments of the operation corresponding to this Expr. - The non-tensor object in the input of the operation. - The input Nodes of this Expr. - Get the the keyword arguments of the operation corresponding to this Expr. - the qualified name of the attribute to be retrieved. - The - TreeDefused to reconstruct the output of the operation.- The output Nodes of this Expr. - Get the parent graph of this Expr. - Methods - add_inputs(vals)- add_outputs(outputs)- interpret(*inputs)- make(*args, **kwargs)- replace_inputs(repl_dict)- Replace the input Nodes of this Expr. - unflatten_args(inputs)