-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed as not planned
Closed as not planned
Copy link
Labels
mlirquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
- For test, it is descriptived with torch mlir, and I add option -allow-unregistered-dialect for this custom dialect, but it still report error.
<source>:15:13: error: Dialect `torch' not found for custom op 'torch.constant.bool'
%true = torch.constant.bool true
- Related torch mlir test
module {
func.func @main(
%input: !torch.vtensor<[2,3,10],f32>,
%kernel_size: !torch.list<int>,
%stride: !torch.list<int>,
%padding: !torch.list<int>,
%ceil_mode: !torch.bool,
%count_include_pad: !torch.bool
) -> !torch.vtensor<[2,3,4],f32> {
%true = torch.constant.bool true
%false = torch.constant.bool false
%int0 = torch.constant.int 0
%int2 = torch.constant.int 2
%int3 = torch.constant.int 3
%0 = torch.prim.ListConstruct %int3 : (!torch.int) -> !torch.list<int>
%1 = torch.prim.ListConstruct %int2 : (!torch.int) -> !torch.list<int>
%2 = torch.prim.ListConstruct %int0 : (!torch.int) -> !torch.list<int>
%output = torch.aten.avg_pool1d %input, %kernel_size, %stride, %padding, %ceil_mode, %count_include_pad
: !torch.vtensor<[2,3,10],f32>, !torch.list<int>, !torch.list<int>, !torch.list<int>, !torch.bool, !torch.bool -> !torch.vtensor<[2,3,4],f32>
return %output : !torch.vtensor<[2,3,4],f32>
}
}
Metadata
Metadata
Assignees
Labels
mlirquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!