Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in find_concat_op #3224

Closed
shivadbhavsar opened this issue Jun 26, 2024 · 0 comments · Fixed by #3242
Closed

Bug in find_concat_op #3224

shivadbhavsar opened this issue Jun 26, 2024 · 0 comments · Fixed by #3242
Assignees
Labels
bug Something isn't working TorchMIGraphX

Comments

@shivadbhavsar
Copy link
Contributor

Repro:

# concat_err.py
import numpy as np
import migraphx

p = migraphx.program()
mm = p.get_main_module()

lit1 = mm.add_literal(np.random.randn(128, 1, 1, 1, 1).astype(np.float32))
lit2 = mm.add_literal(np.random.randn(1, 3, 1, 1, 1).astype(np.float32))

lit1_bc = mm.add_instruction(migraphx.op('multibroadcast', out_lens=[128, 3, 224, 224, 1]), [lit1])
lit2_bc = mm.add_instruction(migraphx.op('multibroadcast', out_lens=[128, 3, 224, 224, 1]), [lit2])

cat = mm.add_instruction(migraphx.op('concat', axis=4), [lit1_bc, lit2_bc])

mm.add_return([cat])

Compile:
migraphx-driver compile concat_err.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TorchMIGraphX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant