MCPcopy
hub / github.com/lutzroeder/netron / print_attributes

Method print_attributes

source/python.js:13027–13043  ·  view source on GitHub ↗
(out, ignore_subgraph)

Source from the content-addressed store, hash-verified

13025 return new torch._C.SourceRange();
13026 }
13027 print_attributes(out, ignore_subgraph) {
13028 ignore_subgraph = ignore_subgraph || false;
13029 out.write('[');
13030 const names = this.attributeNames();
13031 for (let i = 0; i < names.length; i++) {
13032 const name = names[i];
13033 if (ignore_subgraph && name === 'Subgraph') {
13034 continue;
13035 }
13036 if (i > 0) {
13037 out.write(', ');
13038 }
13039 out.write(`${name}=`);
13040 this.printAttrValue(out, name);
13041 }
13042 out.write(']');
13043 }
13044 printTypeList(out, items) {
13045 out.write('[');
13046 for (let i = 0; i < items.length; i++) {

Callers 1

printMethod · 0.80

Calls 3

attributeNamesMethod · 0.80
printAttrValueMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected