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

Method copy

source/python.js:12440–12444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12438 this.all_blocks.delete(b);
12439 }
12440 copy() {
12441 const new_g = new torch.Graph();
12442 new_g.cloneFrom(this);
12443 return new_g;
12444 }
12445 cloneFrom(src) {
12446 const env = (v) => {
12447 throw new python.Error(`Use of value '${v.debugName()}' not in scope.`);

Callers 1

optimized_graphMethod · 0.45

Calls 1

cloneFromMethod · 0.80

Tested by

no test coverage detected