From cbc182d2e074e1b0ab5882376dc91907d69f48dd Mon Sep 17 00:00:00 2001 From: cyy Date: Fri, 27 Sep 2024 16:16:58 +0000 Subject: [PATCH] Remove problematic constructor (#136708) Since it calls a pure virtual function and it is not used elsewhere. Pull Request resolved: https://github.com/pytorch/pytorch/pull/136708 Approved by: https://github.com/ezyang --- torch/csrc/lazy/core/ir.cpp | 9 --------- torch/csrc/lazy/core/ir.h | 7 ------- 2 files changed, 16 deletions(-) diff --git a/torch/csrc/lazy/core/ir.cpp b/torch/csrc/lazy/core/ir.cpp index 7b397ccea2e68..599f491c008ea 100644 --- a/torch/csrc/lazy/core/ir.cpp +++ b/torch/csrc/lazy/core/ir.cpp @@ -90,15 +90,6 @@ Node::Node( } } -Node::Node( - OpKind op, - OpList operands, - const std::function& shape_fn, - size_t num_outputs) - : Node(op, operands, std::vector{}, num_outputs) { - addComputedShape(shape_fn); -} - Node::Node(OpKind op, OpList operands, size_t num_outputs) : Node(op, operands, std::vector{}, num_outputs) {} diff --git a/torch/csrc/lazy/core/ir.h b/torch/csrc/lazy/core/ir.h index 0900115267baf..dd244b7442b2d 100644 --- a/torch/csrc/lazy/core/ir.h +++ b/torch/csrc/lazy/core/ir.h @@ -95,13 +95,6 @@ class TORCH_API Node { std::vector&& shapes, size_t num_outputs = 1); - // Construct node with operands and shape generated from a function - Node( - OpKind op, - OpList operands, - const std::function& shape_fn, - size_t num_outputs = 1); - // Construct node with operands and no shape Node(OpKind op, OpList operands, size_t num_outputs = 1);