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

Method get_all_attributes

caffe2/python/core.py:2926–2935  ·  view source on GitHub ↗

Return the list of all attributes under the given `name`, present in all of the nets used in this plan.

(self, name)

Source from the content-addressed store, hash-verified

2924 return self._steps
2925
2926 def get_all_attributes(self, name):
2927 """
2928 Return the list of all attributes under the given `name`, present in
2929 all of the nets used in this plan.
2930 """
2931 return [
2932 attr
2933 for net in self._net_dict.values()
2934 for attr in net.get_attributes(name)
2935 ]
2936
2937 @classmethod
2938 def create_from_proto(cls, plan_proto):

Callers 2

get_setup_netsFunction · 0.45
get_stepMethod · 0.45

Calls 2

get_attributesMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected