projects
/
platform
/
core
/
ml
/
nntrainer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4966b2
)
[fix_ahub] Fix Ahub Defect
author
SeoHyungjun
<hyungjun.seo@samsung.com>
Thu, 29 Jun 2023 02:15:26 +0000
(11:15 +0900)
committer
Jijoong Moon
<jijoong.moon@samsung.com>
Tue, 4 Jul 2023 01:06:50 +0000
(10:06 +0900)
The transfer_learning variable is a variable set by the
user and does not change during execution.
Changed bool to const bool.
Signed-off-by: SeoHyungjun <hyungjun.seo@samsung.com>
Applications/Resnet/jni/main.cpp
patch
|
blob
|
history
diff --git
a/Applications/Resnet/jni/main.cpp
b/Applications/Resnet/jni/main.cpp
index 10cfee86cdee896966a91527baf06fe92af51cb9..a10b53ae1caf93456e473d330ac63f5ebbf39ba0 100644
(file)
--- a/
Applications/Resnet/jni/main.cpp
+++ b/
Applications/Resnet/jni/main.cpp
@@
-254,7
+254,7
@@
void createAndRun(unsigned int epochs, unsigned int batch_size,
UserDataType &train_user_data,
UserDataType &valid_user_data) {
// set option for transfer learning
- bool transfer_learning = false;
+
const
bool transfer_learning = false;
std::string pretrained_bin_path = "./pretrained_resnet18.bin";
// setup model