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

Method isGraphOrClosureBlock

source/python.js:18743–18745  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

18741 return null;
18742 }
18743 static isGraphOrClosureBlock(block) {
18744 return block.owningNode() === null || torch._C.ExitTransformer.owningNodeKind(block) === 'prim::Closure';
18745 }
18746 static removeOutputs(b) {
18747 while (b.outputs().length > 0) {
18748 b.eraseOutput(0);

Callers 1

updateTargetBlockMethod · 0.80

Calls 2

owningNodeMethod · 0.80
owningNodeKindMethod · 0.80

Tested by

no test coverage detected