Some const declarations changed to constexpr

PiperOrigin-RevId: 307514970
Change-Id: Ib27a5e36e23c8658e8bd517a06809eb831f452d8
This commit is contained in:
A. Unique TensorFlower 2020-04-20 18:08:10 -07:00 committed by TensorFlower Gardener
parent 78edbb6403
commit ae06854dec
2 changed files with 2 additions and 2 deletions

View File

@ -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_;

View File

@ -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)>;