AndrewZhaoLuo commented on code in PR #11000: URL: https://github.com/apache/tvm/pull/11000#discussion_r856618606
########## python/tvm/contrib/debugger/debug_executor.py: ########## @@ -281,6 +282,42 @@ def run_individual(self, number, repeat=1, min_repeat_ms=0): ret = self._run_individual(number, repeat, min_repeat_ms) return ret.strip(",").split(",") if ret else [] + def run_individual_node(self, index, number, repeat=1, min_repeat_ms=0): + """Benchmark a single node in the serialized graph. + + Parameters + ---------- + index : int + The index of the node, see `self.debug_datum.get_graph_nodes` + + number: int + The number of times to run the node to get a benchmark result. + + repeat: int + The number of times to benchmark the nodes. Review Comment: Done ########## python/tvm/contrib/debugger/debug_executor.py: ########## @@ -281,6 +282,42 @@ def run_individual(self, number, repeat=1, min_repeat_ms=0): ret = self._run_individual(number, repeat, min_repeat_ms) return ret.strip(",").split(",") if ret else [] + def run_individual_node(self, index, number, repeat=1, min_repeat_ms=0): + """Benchmark a single node in the serialized graph. + + Parameters + ---------- + index : int + The index of the node, see `self.debug_datum.get_graph_nodes` + + number: int + The number of times to run the node to get a benchmark result. + + repeat: int + The number of times to benchmark the nodes. + + min_repeat_ms: int + The minimum consecutive runtime of the node for a benchmark result. + + Returns + ------- + A list of dimensions `number` x `repeat` each one the runtime of the node Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org