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_splits pass #3218

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

Bug in find_splits pass #3218

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

Comments

@shivadbhavsar
Copy link
Contributor

shivadbhavsar commented Jun 26, 2024

repo:

#splits_err.py
import numpy as np
import migraphx

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

in1 = mm.add_literal(np.random.randn(128, 24, 48, 48).astype(np.float32))
conv_550_w = mm.add_literal(np.random.randn(288, 24, 1, 1).astype(np.float32))
conv_550 = mm.add_instruction(migraphx.op('convolution', padding=[0, 0, 0, 0],stride=[1, 1],dilation=[1, 1],group=1,padding_mode=0), [in1, conv_550_w])

slc_552 = mm.add_instruction(migraphx.op('slice', axes=[1], starts=[0], ends=[144]), [conv_550])
slc_617 = mm.add_instruction(migraphx.op('slice', axes=[1], starts=[144], ends=[288]), [conv_550])

add_553_lit = mm.add_literal(np.random.randn(128, 144, 48, 48).astype(np.float32))
add_533 = mm.add_instruction(migraphx.op('add'), [add_553_lit, slc_552])

add_619_lit = mm.add_literal(np.random.randn(128, 144, 48, 48).astype(np.float32))
add_619 = mm.add_instruction(migraphx.op('add'), [slc_617, add_619_lit])

mm.add_return([add_533, add_619])

Compile using:
migraphx-driver compile splits_err.py

@shivadbhavsar shivadbhavsar self-assigned this Jun 26, 2024
@shivadbhavsar shivadbhavsar added bug Something isn't working TorchMIGraphX labels Jun 26, 2024
@shivadbhavsar shivadbhavsar linked a pull request Jul 4, 2024 that will close this issue
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