MCPcopy Index your code
hub / github.com/lutzroeder/netron / register_attribute

Method register_attribute

source/python.js:16563–16566  ·  view source on GitHub ↗
(name, t, v, is_param, is_buffer)

Source from the content-addressed store, hash-verified

16561 this.__setattr__(name, v); // _ivalue()->setAttr(name, std::move(v));
16562 }
16563 register_attribute(name, t, v, is_param, is_buffer) {
16564 this.type().addOrCheckAttribute(name, t, is_param, is_buffer);
16565 // _ivalue()->setAttr(name, v);
16566 }
16567 });
16568 this.registerType('torch.ModuleDict', class {
16569 constructor(mod) {

Callers

nothing calls this directly

Calls 2

addOrCheckAttributeMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected