mirror of https://github.com/llvm/torch-mlir
Add Shape inference for CopyOp for lazy tensor core backend (#2006)
- Add Shape inference for CopyOp for LTC backendpull/2013/head
parent
224ee27610
commit
c2c96c430a
|
@ -895,24 +895,17 @@ LTC_XFAIL_SET = {
|
|||
"VarMeanCorrectionModule_basic",
|
||||
"VarMeanCorrectionNoneModule_basic",
|
||||
"PrimsConvertElementTypeModule_basic",
|
||||
"CopyModule_basic",
|
||||
"CopyWithDifferentDTypesAndSizesModule_basic",
|
||||
"CopyWithDifferentDTypesModule_basic",
|
||||
"CopyWithDifferentSizesModule_basic",
|
||||
"ElementwisePreluModule_basic",
|
||||
"VarMeanBiasedModule_basic",
|
||||
"VarMeanUnbiasedModule_basic",
|
||||
"RandnLikeModule_basic",
|
||||
"RandnLikeDtypeModule_basic",
|
||||
"NewEmptyStridedModuleDefaultDtype_basic",
|
||||
"BernoulliFloatModule_basic",
|
||||
"BernoulliModule_basic",
|
||||
"BernoulliPModule_basic",
|
||||
"DropoutTrainModule_basic",
|
||||
"StdCorrectionKeepDimModule_basic",
|
||||
"StdCorrectionNoneModule_basic",
|
||||
"SliceCopy_Module_basic",
|
||||
"SliceCopyNegative_Module_basic",
|
||||
"VarBiasedModule_basic",
|
||||
"VarCorrectionAllDimReduceModule_basic",
|
||||
"VarCorrectionEmptyDimModule_basic",
|
||||
|
|
|
@ -56,5 +56,12 @@ std::vector<torch::lazy::Shape> compute_shape_bucketize(
|
|||
return {Shape(dtype, self.sizes().vec())};
|
||||
}
|
||||
|
||||
std::vector<torch::lazy::Shape> compute_shape_copy(
|
||||
const at::Tensor& self,
|
||||
const at::Tensor& src,
|
||||
bool non_blocking) {
|
||||
return {Shape(self.scalar_type(), self.sizes().vec())};
|
||||
}
|
||||
|
||||
} // namespace lazy
|
||||
} // namespace torch
|
||||
|
|
Loading…
Reference in New Issue