Some const declarations changed to constexpr
PiperOrigin-RevId: 307514970 Change-Id: Ib27a5e36e23c8658e8bd517a06809eb831f452d8
This commit is contained in:
parent
78edbb6403
commit
ae06854dec
@ -148,7 +148,7 @@ class HloReachabilityMap {
|
||||
|
||||
private:
|
||||
using Word = uint64;
|
||||
static const size_t kBits = 64;
|
||||
static constexpr size_t kBits = 64;
|
||||
|
||||
// Number of bits in the bitvector.
|
||||
size_t size_;
|
||||
|
@ -34,7 +34,7 @@ class HalfTestBase : public ClientLibraryTestBase {
|
||||
protected:
|
||||
const ErrorSpec error_spec_{0.001, 0.001};
|
||||
// Number of elements in the input buffers.
|
||||
static const int kNumElements = 4;
|
||||
static constexpr int kNumElements = 4;
|
||||
};
|
||||
|
||||
using UnaryBuildFuncTy = std::function<void(const xla::XlaOp& src)>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user