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

Method update_users_and_input_nodes

source/python.js:8889–8895  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

8887 }
8888 __update_args_kwargs(new_args, new_kwargs) {
8889 const update_users_and_input_nodes = (n) => {
8890 if (n instanceof torch.fx.node.Node) {
8891 this._input_nodes.setdefault(n);
8892 n.users.setdefault(this);
8893 }
8894 return n;
8895 };
8896 const map_aggregate = (a, fn) => {
8897 if (a instanceof builtins.tuple) {
8898 const t = new builtins.tuple(a.map((elem) => map_aggregate(elem, fn)));

Callers

nothing calls this directly

Calls 1

setdefaultMethod · 0.80

Tested by

no test coverage detected