Skip to content

Commit

Permalink
[BugFix] Copy intermediate result in debug runtime (apache#2520)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored and merrymercy committed Feb 17, 2019
1 parent ab44c00 commit 4d06129
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tvm/contrib/debugger/debug_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from tvm._ffi.base import string_types
from tvm._ffi.function import get_global_func
from tvm.contrib import graph_runtime
from tvm.ndarray import array
from tvm.rpc import base as rpc_base
from . import debug_result

Expand Down Expand Up @@ -172,6 +173,7 @@ def _run_debug(self):
num_outputs = self.debug_datum.get_graph_node_output_num(node)
for j in range(num_outputs):
out_tensor = self._get_output_by_layer(i, j)
out_tensor = array(out_tensor)
self.debug_datum._output_tensor_list.append(out_tensor)

def debug_get_output(self, node, out):
Expand Down

0 comments on commit 4d06129

Please sign in to comment.