Skip to content

Commit

Permalink
Remove problematic constructor (pytorch#136708)
Browse files Browse the repository at this point in the history
Since it calls a pure virtual function and it is not used elsewhere.
Pull Request resolved: pytorch#136708
Approved by: https://github.com/ezyang
  • Loading branch information
cyyever authored and pytorchmergebot committed Sep 27, 2024
1 parent dc8c0aa commit cbc182d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions torch/csrc/lazy/core/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ Node::Node(
}
}

Node::Node(
OpKind op,
OpList operands,
const std::function<Shape()>& shape_fn,
size_t num_outputs)
: Node(op, operands, std::vector<Shape>{}, num_outputs) {
addComputedShape(shape_fn);
}

Node::Node(OpKind op, OpList operands, size_t num_outputs)
: Node(op, operands, std::vector<Shape>{}, num_outputs) {}

Expand Down
7 changes: 0 additions & 7 deletions torch/csrc/lazy/core/ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ class TORCH_API Node {
std::vector<Shape>&& 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()>& shape_fn,
size_t num_outputs = 1);

// Construct node with operands and no shape
Node(OpKind op, OpList operands, size_t num_outputs = 1);

Expand Down

0 comments on commit cbc182d

Please sign in to comment.