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

Method createIsInstance

source/python.js:12318–12323  ·  view source on GitHub ↗
(v, types)

Source from the content-addressed store, hash-verified

12316 return node;
12317 }
12318 createIsInstance(v, types) {
12319 const n = this.create('prim::isinstance', [v], 1);
12320 n.tys_('types', types);
12321 n.output().setType(torch.BoolType.get());
12322 return n;
12323 }
12324 createSetAttr(obj, field, newValue) {
12325 const n = this.create('prim::SetAttr', [obj, newValue], 0);
12326 n.s_('name', field);

Callers 1

emitIsInstanceMethod · 0.80

Calls 5

tys_Method · 0.80
setTypeMethod · 0.80
createMethod · 0.45
outputMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected