Skip to content

Commit

Permalink
Update python.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Dec 12, 2022
1 parent a740115 commit 1053dcf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -4270,6 +4270,17 @@ python.Execution = class {
params.groups = groups;
return params;
});
this.registerFunction('ops.quantized.conv_transpose1d_prepack', function(weight, bias, stride, padding, output_padding, dilation, groups) {
const params = self.invoke('__torch__.torch.classes.quantized.Conv2dPackedParamsBase', []);
params.weight = weight;
params.bias = bias;
params.stride = stride;
params.padding =padding;
params.output_padding = output_padding;
params.dilation = dilation;
params.groups = groups;
return params;
});
this.registerFunction('ops.quantized.conv_transpose2d_prepack', function(weight, bias, stride, padding, output_padding, dilation, groups) {
const params = self.invoke('__torch__.torch.classes.quantized.Conv2dPackedParamsBase', []);
params.weight = weight;
Expand Down

0 comments on commit 1053dcf

Please sign in to comment.