MCPcopy Create free account
hub / github.com/pytorch/pytorch / get_all_attributes

Method get_all_attributes

caffe2/python/core.py:2805–2814  ·  view source on GitHub ↗

Return the list of all attributes under the given `name`, present in all of the nets used in this execution step and its children.

(self, name)

Source from the content-addressed store, hash-verified

2803 return self
2804
2805 def get_all_attributes(self, name):
2806 """
2807 Return the list of all attributes under the given `name`, present in
2808 all of the nets used in this execution step and its children.
2809 """
2810 return [
2811 attr
2812 for net in self._net_dict.values()
2813 for attr in net.get_attributes(name)
2814 ]
2815
2816 @classmethod
2817 def create_from_proto(cls, step_proto, net_obj_dict, net_proto_dict):

Callers

nothing calls this directly

Calls 2

get_attributesMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected