Rate this Page

create_getattr_from_value#

class torch.ao.quantization.fx.utils.create_getattr_from_value(module, graph, prefix, value, device=None)[source]#

Given a value of any type, creates a getattr node corresponding to the value and registers the value as a buffer to the module.

Return type:

Node