updat ops validations
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
|
||||
namespace onnx_mlir {
|
||||
|
||||
struct FragmentAssemblyEntry {
|
||||
int64_t sourceSlot;
|
||||
int64_t sourceOffset;
|
||||
llvm::SmallVector<int64_t, 4> destinationOffsets;
|
||||
llvm::SmallVector<int64_t, 4> sizes;
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
|
||||
inline mlir::ValueRange getBlockArgs(mlir::Block* block) { return mlir::ValueRange(block->getArguments()); }
|
||||
@@ -407,4 +414,12 @@ mlir::Value materializeOrComputeUnary(mlir::Value input,
|
||||
|
||||
mlir::Value sumTensors(mlir::ArrayRef<mlir::Value> tensors, mlir::PatternRewriter& rewriter);
|
||||
|
||||
mlir::FailureOr<mlir::Value> createFragmentAssemblyBlueprint(mlir::Value physicalBatch,
|
||||
mlir::RankedTensorType logicalType,
|
||||
llvm::ArrayRef<FragmentAssemblyEntry> entries,
|
||||
llvm::StringRef physicalLayout,
|
||||
llvm::StringRef indexMap,
|
||||
mlir::PatternRewriter& rewriter,
|
||||
mlir::Location loc);
|
||||
|
||||
} // namespace onnx_mlir
|
||||
|
||||
Reference in New Issue
Block a user