From 377372842ced269f11cd3b348cc09274cfabee4c Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Wed, 8 Jan 2025 19:04:20 -0500 Subject: [PATCH] more state 2 --- CMakeLists.txt | 2 +- src/MNIST.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 771dcc8..0b5fcf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(COSC-4P80-Final-Project VERSION 0.0.16) +project(COSC-4P80-Final-Project VERSION 0.0.17) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/src/MNIST.cpp b/src/MNIST.cpp index 63833a0..8e7047c 100644 --- a/src/MNIST.cpp +++ b/src/MNIST.cpp @@ -617,7 +617,8 @@ namespace fp std::exit(-1); } - state << i; + // user can skip this if required. + state << i - 1; state << '\n'; state << last_epoch_save; state << '\n';