Commit 5a30a22c by Wuwei Lin Committed by Yizhi Liu

[BugFix] Copy intermediate result in debug runtime (#2520)

parent 1120655b
...@@ -7,6 +7,7 @@ from datetime import datetime ...@@ -7,6 +7,7 @@ from datetime import datetime
from tvm._ffi.base import string_types from tvm._ffi.base import string_types
from tvm._ffi.function import get_global_func from tvm._ffi.function import get_global_func
from tvm.contrib import graph_runtime from tvm.contrib import graph_runtime
from tvm.ndarray import array
from tvm.rpc import base as rpc_base from tvm.rpc import base as rpc_base
from . import debug_result from . import debug_result
...@@ -172,6 +173,7 @@ class GraphModuleDebug(graph_runtime.GraphModule): ...@@ -172,6 +173,7 @@ class GraphModuleDebug(graph_runtime.GraphModule):
num_outputs = self.debug_datum.get_graph_node_output_num(node) num_outputs = self.debug_datum.get_graph_node_output_num(node)
for j in range(num_outputs): for j in range(num_outputs):
out_tensor = self._get_output_by_layer(i, j) out_tensor = self._get_output_by_layer(i, j)
out_tensor = array(out_tensor)
self.debug_datum._output_tensor_list.append(out_tensor) self.debug_datum._output_tensor_list.append(out_tensor)
def debug_get_output(self, node, out): def debug_get_output(self, node, out):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment