mirror of https://github.com/llvm/torch-mlir
[FxImporter] Fix failed e2e case (#3365)
parent
b870729efe
commit
c2c1c2cfa4
|
@ -455,9 +455,6 @@ FX_IMPORTER_XFAIL_SET = {
|
|||
"ThresholdBackward2dMixedModule_basic",
|
||||
"TorchPrimLoopForLikeModule_basic",
|
||||
"TorchPrimLoopWhileLikeModule_basic",
|
||||
"UnbindIntGetItem_Module_basic",
|
||||
"UnbindIntListUnpack_Module_basic",
|
||||
"UnsafeIndexPutHackedTwin1DFloatNonAccumulateModule_basic",
|
||||
"UnsafeViewCollapseDynamicWithAtenSizeIntModule_basic",
|
||||
"UpSampleNearest2dDynamicFactor_basic",
|
||||
"ViewCollapseDynamicWithAtenSizeIntModule_basic",
|
||||
|
|
|
@ -47,6 +47,7 @@ DEFAULT_DECOMPOSITIONS = [
|
|||
torch.ops.aten.linspace.default,
|
||||
torch.ops.aten.triu.default,
|
||||
torch.ops.aten.nan_to_num.default,
|
||||
torch.ops.aten.unbind,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1428,6 +1428,8 @@ class GraphNodeImporter:
|
|||
elif target == torch.ops.aten._assert_async.msg:
|
||||
# TODO: A more suitable op to replace it?
|
||||
return
|
||||
elif target == torch.ops.aten._unsafe_index_put.default:
|
||||
node.target = target = torch.ops.aten._unsafe_index_put.hacked_twin
|
||||
|
||||
schema = target._schema
|
||||
assert isinstance(schema, FunctionSchema)
|
||||
|
|
Loading…
Reference in New Issue