[ 
https://issues.apache.org/jira/browse/SINGA-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15692454#comment-15692454
 ] 

ASF subversion and git services commented on SINGA-261:
-------------------------------------------------------

Commit 0bf1475ecf4c4267b5a5f6667a71f8142eb24e42 in incubator-singa's branch 
refs/heads/master from [~flytosky]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=0bf1475 ]

SINGA-261 Add version ID into the checkpoint files

1. Rename the cudnn versions to CUDNN_MAJOR_VERSION, CUDNN_MINOR_VERSION
and CUDNN_PATCH_VERSION
2. Add SINGA_MAJOR_VERSION, SINGA_MINOR_VRESION, SINGA_PATCH_VERSION,
SINGA_VERSION
into cmake and singa_confi.g
3. Write the SINGA_VERSION into the snapshot file (both bin and desc
files); And Read it when loading model parameters from the snapshot file; The 
versions
in the bin file and desc file must match;
3. rename the generated snapshot file sufix from .model to .bin; It is still 
able
to load .model file.


> Add version ID into the checkpoint files
> ----------------------------------------
>
>                 Key: SINGA-261
>                 URL: https://issues.apache.org/jira/browse/SINGA-261
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: wangwei
>
> During the development progress, we may change the checkpoint file structure. 
> To be compatible with previous version, we need to add the version ID 
> (MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL) into the checkpoint file and 
> convert the checkpoint file content automatically when we load it.
> The version ID would be written into the .desc file. The load() function 
> would read the .desc file firstly and then choose the correponding method to 
> read the parse the .model file.
> The the weight matrix of the dense layer as an example. Some systems (e.g. 
> Caffe) set the shape as (num_output, num_input), whereas SINGA uses 
> (num_input, num_output). If we change it to (num_output, num_input) in a new 
> patch/version, we need to associate the checkpoint file with the SINGA 
> version and SINGA would then know how to load the checkpoint file correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to