forked from OSchip/llvm-project
Apply clang-tidy fixes for modernize-use-override to MLIR (NFC)
Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D116356
This commit is contained in:
parent
513463b589
commit
0ae2e9580c
|
@ -277,7 +277,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
virtual ~SparseTensorStorage() = default;
|
||||
~SparseTensorStorage() override = default;
|
||||
|
||||
/// Get the rank of the tensor.
|
||||
uint64_t getRank() const { return sizes.size(); }
|
||||
|
|
|
@ -25,7 +25,7 @@ class TestUniformQuantizedValueConverter
|
|||
public:
|
||||
TestUniformQuantizedValueConverter(UniformQuantizedType type)
|
||||
: UniformQuantizedValueConverter(type), qtype(type) {}
|
||||
APInt quantizeFloatToInt(APFloat expressedValue) const {
|
||||
APInt quantizeFloatToInt(APFloat expressedValue) const override {
|
||||
return APInt(qtype.getStorageType().cast<IntegerType>().getWidth(), 5L);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue