ekalda commented on a change in pull request #10251:
URL: https://github.com/apache/tvm/pull/10251#discussion_r807853707
##########
File path: python/tvm/relay/backend/contrib/ethosu/tir/passes.py
##########
@@ -338,35 +340,91 @@ def _new_buffer(old_buffer, new_value):
rewrite_buffer[old_buffer] = new_buffer
rewrite_pointer[old_buffer.data] = new_buffer.data
+ def _encode_weights_or_bias(ptr1, ptr2, stmt, encode_func):
+ """Encode the weights or align the bias either for one or two cores,
+ depending on the variant."""
+ assert ptr1 in pointer_to_buffer
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]