Skip to content

Conversation

@neildhickey
Copy link
Contributor

Adds support for BATCH_MATMUL operator in the TFLite frontend.

Adds a test that checks supported TFLite types.

Adds support for BATCH_MATMUL operator in the TFLite frontend.

Adds a test that checks supported TFLite types.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 29, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @neildhickey!

@masahi masahi merged commit 70399da into apache:main Mar 30, 2023
@neildhickey neildhickey deleted the enable_batchmatmul branch March 31, 2023 06:10
rank_diff = rank_a - rank_b
new_b_shape = _op.concatenate(
[
_expr.const([1] * rank_diff, dtype=_infer_type(b_shape).checked_type.dtype),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "b_shape" here is a mistake? should be "shape_b"?

rank_diff = rank_b - rank_a
new_a_shape = _op.concatenate(
[
_expr.const([1] * rank_diff, dtype=_infer_type(a_shape).checked_type.dtype),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "a_shape" here is a mistake? should be "shape_a"?

)
)
if not tvm.ir.structural_equal(shape_a, a_broadcasted_shape):
input_a = _op.transform.broadcast_to(a, a_broadcasted_shape)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a" is not define?

if not tvm.ir.structural_equal(shape_a, a_broadcasted_shape):
input_a = _op.transform.broadcast_to(a, a_broadcasted_shape)
if not tvm.ir.structural_equal(shape_b, b_broadcasted_shape):
input_b = _op.transform.broadcast_to(b, b_broadcasted_shape)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"b" is not define

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants