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);