Skip to content

Commit

Permalink
Adapt to torchacc 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
anw90 committed Jul 16, 2024
1 parent 72eec1c commit fb0d1e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <torch/csrc/jit/passes/dead_code_elimination.h>
#include <torch/csrc/jit/runtime/operator.h>
#include <torch/csrc/jit/runtime/vararg_functions.h>
#include <torch/csrc/utils/memory.h>
#endif

namespace torch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class AttributePropagator {
void recordMutableAttrs(std::shared_ptr<Graph>& graph) {
std::stack<Block*> blocks({graph->block()});
std::unique_ptr<AliasDb> aliasDb =
torch::make_unique<AliasDb>(graph, /* isFrozen */ true);
std::make_unique<AliasDb>(graph, /* isFrozen */ true);
while (!blocks.empty()) {
Block* block = blocks.top();
blocks.pop();
Expand Down

0 comments on commit fb0d1e1

Please sign in to comment.