-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[s2t] streaming conformer u2 and u2pp jit export #2502
Conversation
…into u2_export
…output is not equal
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.
LGTM
# k = self.linear_k(key).view(n_batch, -1, self.h, self.d_k) | ||
# v = self.linear_v(value).view(n_batch, -1, self.h, self.d_k) | ||
k, v = F.linear(key, self.weight, self.bias).view( | ||
n_batch, -1, 2 * self.h, self.d_k).split( |
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.
if self.training:
k = self.linear_k(key).view(n_batch, -1, self.h, self.d_k)
v = self.linear_v(value).view(n_batch, -1, self.h, self.d_k)
else:
k, v = F.linear(key, self.weight, self.bias).view(
n_batch, -1, 2 * self.h, self.d_k).split(
2, axis=2)
PR types
New features
PR changes
Others
Describe
u2pp/u2 support static export
decoder using
fowrad_attention_decoder
to replacedecoder
remove useless cast for bool operations
reverse_weight in decode config file
fix audio fbank api for static export