You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
In the Linalg dialect example: examples/Linalg/Linalg2/include/linalg2/TensorOps.h why the 3 op classes are all defined with mlir::OpTrait::ZeroResult?
/// Implements c = A * B where c is a scalar and A and B are 1-D vectors.classDotOp : publicTensorContractionBase<DotOp>,
public mlir::Op<DotOp, mlir::OpTrait::VariadicOperands,
mlir::OpTrait::ZeroResult> {
/// Implements C = A * B where A is a 2-D matrix and X and Y are 1-D vectors.classMatvecOp : publicTensorContractionBase<MatvecOp>,
public mlir::Op<MatvecOp, mlir::OpTrait::VariadicOperands,
mlir::OpTrait::ZeroResult> {
/// Implements C = A * B on 2-D matrices.classMatmulOp : publicTensorContractionBase<MatmulOp>,
public mlir::Op<MatmulOp, mlir::OpTrait::VariadicOperands,
mlir::OpTrait::ZeroResult> {
Activity
joker-eph commentedon Apr 22, 2019
If you look for example here: https://github.com/tensorflow/mlir/blob/master/examples/Linalg/Linalg2/Example.cpp#L56 ; you'll see that these operations work by taking 3 views as operands: the two inputs and the result. A C++ equivalent would be:
Instead of:
So there are not values produced by this operations, it works by side-effects.
Also the MLIR mailing-list is likely a good place for this kind of questions: https://groups.google.com/a/tensorflow.org/forum/#!forum/mlir
Revert "[Concepts] Placeholder constraints and abbreviated templates"