forked from llvm/torch-mlir
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from Xilinx/bump_to_513d89c1
[AutoBump] Merge with 513d89c (May 17, needs LLVM bump) (38)
- Loading branch information
Showing
32 changed files
with
2,756 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// Also available under a BSD-style license. See LICENSE. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#ifndef TORCHMLIR_DIALECT_TORCH_SPARSITY_UTILS_H | ||
#define TORCHMLIR_DIALECT_TORCH_SPARSITY_UTILS_H | ||
|
||
#include "mlir/IR/Attributes.h" | ||
#include "mlir/IR/Value.h" | ||
#include "mlir/Support/LogicalResult.h" | ||
|
||
namespace mlir { | ||
namespace torch { | ||
namespace Torch { | ||
|
||
// Create a new SparseTensorEncodingAttr based on the provided `attr`, but with | ||
// a new dense level inserted at `dim`. | ||
FailureOr<Attribute> getSparsityWithDenseLTAtDim(Attribute attr, Value dim); | ||
|
||
} // namespace Torch | ||
} // namespace torch | ||
} // namespace mlir | ||
|
||
#endif // TORCHMLIR_DIALECT_TORCH_SPARSITY_UTILS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.