MCPcopy Index your code
hub / github.com/pytorch/pytorch / add_attribute

Method add_attribute

caffe2/python/core.py:1584–1589  ·  view source on GitHub ↗

Add `obj` to the list of attributes in this net under the given `name`. Attributes are user-defined objects and have no pre-defined semantics.

(self, name, obj)

Source from the content-addressed store, hash-verified

1582 self.Print(blob, [])
1583
1584 def add_attribute(self, name, obj):
1585 """
1586 Add `obj` to the list of attributes in this net under the given `name`.
1587 Attributes are user-defined objects and have no pre-defined semantics.
1588 """
1589 self._attr_dict[name].append(obj)
1590
1591 def get_attributes(self, name):
1592 """

Callers 11

_new_writerMethod · 0.80
_new_readerMethod · 0.80
task_initMethod · 0.80
task_exitMethod · 0.80
task_instance_initMethod · 0.80
task_instance_exitMethod · 0.80
local_initMethod · 0.80
local_exitMethod · 0.80
__exit__Method · 0.80
read_exMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected