-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TOPI] Bitserial low-precision convolution #1332
Changes from 13 commits
0329772
777f9ea
2e56f09
2220a36
b329f46
753c4b2
baf57f4
62340c4
74660b1
f8467dd
74517e1
80d0f08
d5b7f82
8708aab
bb0dc52
85a931f
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 |
---|---|---|
|
@@ -53,6 +53,22 @@ def schedule_conv2d_nhwc(outs): | |
""" | ||
return _default_schedule(outs, False) | ||
|
||
@tvm.target.generic_func | ||
def schedule_qdense(outs): | ||
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. qdense->bitserial_dense |
||
"""Schedule for qdense | ||
|
||
Parameters | ||
---------- | ||
outs: Array of Tensor | ||
The computation graph description of qdense | ||
in the format of an array of tensors. | ||
|
||
Returns | ||
------- | ||
sch: Schedule | ||
The computation schedule for the op. | ||
""" | ||
return _default_schedule(outs, False) | ||
|
||
@tvm.target.generic_func | ||
def schedule_conv2d_NCHWc(num_filter, kernel_size, strides, padding, outs): | ||
|
@@ -132,6 +148,41 @@ def schedule_depthwise_conv2d_nhwc(outs): | |
""" | ||
return _default_schedule(outs, False) | ||
|
||
@tvm.target.generic_func | ||
def schedule_bitserial_conv2d_nchw(outs): | ||
"""Schedule for qconv2d_nchw | ||
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. qconv2d->bitserial_conv2d, do a search over qconv2d and replace by bitserial_conv2d |
||
|
||
Parameters | ||
---------- | ||
outs: Array of Tensor | ||
The computation graph description of qconv2d_nchw | ||
in the format of an array of tensors. | ||
|
||
Returns | ||
------- | ||
sch: Schedule | ||
The computation schedule for the op. | ||
""" | ||
return _default_schedule(outs, False) | ||
|
||
|
||
@tvm.target.generic_func | ||
def schedule_bitserial_conv2d_nhwc(outs): | ||
"""Schedule for qconv2d_nhwc | ||
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. qconv2d -> bitserial, maybe try to do a search for qconv2d and rename |
||
|
||
Parameters | ||
---------- | ||
outs: Array of Tensor | ||
The computation graph description of qconv2d_nchw | ||
in the format of an array of tensors. | ||
|
||
Returns | ||
------- | ||
sch: Schedule | ||
The computation schedule for the op. | ||
""" | ||
return _default_schedule(outs, False) | ||
|
||
|
||
@tvm.target.override_native_generic_func("schedule_reduce") | ||
def schedule_reduce(outs): | ||
|
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.
qdense->bitserial_dense?