Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torch/csrc/lazy/core/dynamic_ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace torch {
namespace lazy {

DimensionNode::DimensionNode(OpKind op, OpList operands, hash_t hash_seed):
TsNode(op, operands, /*num_outputs=*/1,
Node(op, operands, /*num_outputs=*/1,
/* node_hash */ HashCombine(op.hash(), hash_seed)){}

std::string DimensionNode::ToString() const {
Expand Down
9 changes: 1 addition & 8 deletions torch/csrc/lazy/core/dynamic_ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,9 @@ namespace lazy {
* burned into the Graph.
*/

class TORCH_API DimensionNode : public lazy::TsNode {
class TORCH_API DimensionNode : public lazy::Node {
public:
DimensionNode(OpKind op, OpList operands, hash_t hash_seed = kHashSeed);

// N.B. Node doesn't have sizes() so we don't need to override it to
// throw an error

// TODO: Fix this when John lands input shape API. Change
// DimensionNode's `isDynamic` to a virtual method and implement the
// actual `isDynamic` in all DimensionNode subclasses
bool isDynamic() {
return false;
}
Expand Down