Skip to content
Snippets Groups Projects
Commit baa23f74 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Use labels32.bin

parent 6fa9ca91
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ const int batch_size = {{batch_size}}, input_size = {{input_size}}, batch_count ...@@ -65,7 +65,7 @@ const int batch_size = {{batch_size}}, input_size = {{input_size}}, batch_count
int main(){ int main(){
std::string dir_prefix = "{{prefix}}/"; std::string dir_prefix = "{{prefix}}/";
std::string input_path = dir_prefix + "input.bin"; std::string input_path = dir_prefix + "input.bin";
std::string labels_path = dir_prefix + "labels.bin"; std::string labels_path = dir_prefix + "labels32.bin";
{% for w in weights %} {% for w in weights %}
std::string {{w.name}}_path = dir_prefix + "{{w.filename}}"; std::string {{w.name}}_path = dir_prefix + "{{w.filename}}";
void* {{w.name}} = readTrainedWeights({{w.name}}_path.c_str(), 0, {{w.shape|join(', ')}}); void* {{w.name}} = readTrainedWeights({{w.name}}_path.c_str(), 0, {{w.shape|join(', ')}});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment