Fix issue preventing debug mode from working.

Some constants were declared but not defined. This worked in opt mode as they were inlined, but not debug mode.

PiperOrigin-RevId: 355967655
Change-Id: I9d0a4b7a91f98fa35b73f218c31177b90044e37b
This commit is contained in:
Reed Wanderman-Milne 2021-02-05 18:24:02 -08:00 committed by TensorFlower Gardener
parent 739392739a
commit e1c5fa72f2
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ limitations under the License.
namespace tensorflow {
constexpr BFCAllocator::ChunkHandle BFCAllocator::kInvalidChunkHandle;
constexpr uint64 BFCAllocator::kMemDebugHistorySize;
BFCAllocator::BFCAllocator(SubAllocator* sub_allocator, size_t total_memory,
bool allow_growth, const string& name,

View File

@ -25,6 +25,10 @@ limitations under the License.
namespace tensorflow {
namespace data {
namespace model {
constexpr int64 Model::kOptimizationPeriodMinMs;
constexpr int64 Model::kOptimizationPeriodMaxMs;
namespace {
// Helper function for node traversal that doesn't skip any nodes.