-
Notifications
You must be signed in to change notification settings - Fork 1
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
bad code show case #5
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,20 @@ def _get_cutlass_path(): | |
raise AssertionError(f"The CUTLASS root directory not found in: {invalid_paths}") | ||
|
||
|
||
def ddd(): | ||
|
||
|
||
class SubTreeExtractor(nn.Module): | ||
def __init__(self): | ||
super(SubTreeExtractor, self).__init__() | ||
|
||
def forward(self, x, y): | ||
return x + y | ||
|
||
torch.onnx.export(SubTreeExtractor(), (torch.Tensor(1,2,3,4), 1), "1.onnx") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
|
||
def _get_cutlass_compile_options(sm, threads, use_fast_math=False): | ||
cutlass_root = _get_cutlass_path() | ||
cutlass_include = os.path.join(cutlass_root, "include") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The print statement in function
ddd
is incomplete. [important]