Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
a128eec9
Unverified
Commit
a128eec9
authored
Dec 18, 2022
by
Zihao
Committed by
GitHub
Dec 18, 2022
Browse files
register aten._convolution.default (#2137)
parent
ee287620
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
colossalai/fx/_meta_registrations.py
colossalai/fx/_meta_registrations.py
+17
-0
No files found.
colossalai/fx/_meta_registrations.py
View file @
a128eec9
...
...
@@ -163,6 +163,23 @@ def meta_conv(
return
out
@
register_meta
(
aten
.
_convolution
.
default
)
def
meta_conv_1
(
input_tensor
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
bias
:
torch
.
Tensor
,
stride
:
List
[
int
],
padding
:
List
[
int
],
dilation
:
List
[
int
],
is_transposed
:
bool
,
output_padding
:
List
[
int
],
groups
:
int
,
*
extra_args
):
out
=
meta_conv
(
input_tensor
,
weight
,
bias
,
stride
,
padding
,
dilation
,
is_transposed
,
output_padding
,
groups
)
return
out
@
register_meta
(
aten
.
convolution_backward
.
default
)
def
meta_conv_backward
(
grad_output
:
torch
.
Tensor
,
input
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
bias_sizes
,
stride
,
padding
,
dilation
,
transposed
,
output_padding
,
groups
,
output_mask
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment