Skip to content

Commit

Permalink
Fix interpreter debug logging message (pytorch#63499)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#63499

pytorch#62418 combine the instruction and debug handle. This change fix the debugging message.
ghstack-source-id: 136184053

Test Plan: Uncomment and it works

Reviewed By: kimishpatel, raziel

Differential Revision: D30390699

fbshipit-source-id: e32b7b297ad3b7d8bffebd025d15519083a244c4
  • Loading branch information
cccclai authored and facebook-github-bot committed Aug 19, 2021
1 parent 5254e3a commit 6bb68ba
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions torch/csrc/jit/mobile/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ bool InterpreterState::run(Stack& stack) {
Instruction inst = inst_with_handle.instruction;
DebugHandle debug_handle = inst_with_handle.debug_handle;

// std::cout << "RUNNING " << pc << " " << code_->instructions_[pc];
// if (inst.op == OP) {
// std::cout << ", " << code_->op_names_[inst.X].name;
// if (!code_->op_names_[inst.X].overload_name.empty()) {
// std::cout << "." << code_->op_names_[inst.X].overload_name;
// }
// }
// std::cout << std::endl;
// std::cout << "RUNNING " << pc << " "
// << code_->instructions_with_handles_[pc].instruction;
// if (inst.op == OP) {
// std::cout << ", " << code_->op_names_[inst.X].name;
// if (!code_->op_names_[inst.X].overload_name.empty()) {
// std::cout << "." << code_->op_names_[inst.X].overload_name;
// }
// }
// std::cout << std::endl;

// TODO(iliacher): remove the workaround after RecordFunction is in
// Dispatcher
Expand Down

0 comments on commit 6bb68ba

Please sign in to comment.