Skip to content
Merged
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
9 changes: 5 additions & 4 deletions torch/csrc/jit/codegen/cuda/dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ class TORCH_CUDA_CU_API OptOutMutator : public PolymorphicBase {
void registerMutation(Val* val, Val* mutation);

Val* maybeMutated(Val* val) {
if (mutations.find(val) == mutations.end()) {
if (mutations_.find(val) == mutations_.end()) {
return val;
}
return mutations.at(val);
return mutations_.at(val);
}

std::unordered_map<Val*, Val*> mutations;
std::unordered_map<Val*, Val*> mutations_;

//****Functions below defined in mutator.cpp*****

Expand All @@ -327,7 +327,8 @@ class TORCH_CUDA_CU_API OptOutMutator : public PolymorphicBase {
virtual void mutate(kir::TensorIndex*);

protected:
void removeExpr(IrContainer*, Expr*);
virtual void removeExpr(IrContainer*, Expr*) const;
virtual void registerNewExpr(Expr*) {}
};

} // namespace cuda
Expand Down
Loading