(op, target, args, kwargs, name, type_expr)
| 8955 | return this.create_node('placeholder', name, args, kwargs, type_expr); |
| 8956 | } |
| 8957 | create_node(op, target, args, kwargs, name, type_expr) { |
| 8958 | args = args || new builtins.tuple(); |
| 8959 | kwargs = kwargs || new builtins.dict(); |
| 8960 | const candidate = name || this._target_to_str(target); |
| 8961 | name = this._graph_namespace.create_name(candidate, null); |
| 8962 | const n = new torch.fx.node.Node(this, name, op, target, args, kwargs, type_expr); |
| 8963 | this._graph_namespace.associate_name_with_obj(name, n); |
| 8964 | this._insert(n); |
| 8965 | this._len += 1; |
| 8966 | return n; |
| 8967 | } |
| 8968 | _insert(n) { |
| 8969 | this._root.prepend(n); |
| 8970 | } |
no test coverage detected