File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
external/llvm-project/mlir/lib/Dialect/Bufferization/Transforms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -487,10 +487,10 @@ BufferizationOptions bufferization::getPartialBufferizationOptions() {
487487 BufferizationOptions options;
488488 options.allowUnknownOps = true ;
489489 options.copyBeforeWrite = true ;
490- options.unknownTypeConverterFn = [](Value value, Attribute memorySpace,
490+ options.unknownTypeConverterFn = [](TensorType tensorType,
491+ Attribute memorySpace,
491492 const BufferizationOptions &options) {
492- return getMemRefTypeWithStaticIdentityLayout (
493- cast<TensorType>(value.getType ()), memorySpace);
493+ return getMemRefTypeWithStaticIdentityLayout (tensorType, memorySpace);
494494 };
495495 options.opFilter .allowDialect <BufferizationDialect>();
496496 return options;
You can’t perform that action at this time.
0 commit comments