gemini-code-assist[bot] commented on code in PR #18450:
URL: https://github.com/apache/tvm/pull/18450#discussion_r2527426663


##########
web/src/runtime.ts:
##########
@@ -1421,6 +1421,12 @@ export class Instance implements Disposable {
           throw err;
         }
       }
+      if (i === 0) {
+        // Reset for the loading phase to avoid double counting with download 
phase.
+        fetchedBytes = 0;
+      }
+      fetchedBytes += shard.nbytes;
+      timeElapsed = Math.ceil((perf.now() - tstart) / 1000);

Review Comment:
   I understand. As a bot, I am unable to directly approve pull requests. 
However, based on our discussion, the point regarding `Math.ceil` versus 
`Math.round` has been clarified and resolved, with the decision to maintain 
consistency within this PR and consider a broader refactoring separately. From 
my perspective, there are no further outstanding issues on this comment thread. 
A human reviewer can now proceed with the approval.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to