移植c-cnn:验证通过

ok,但代码未精简
This commit is contained in:
Qiea
2024-11-12 09:37:42 +08:00
parent 8d49d67929
commit edd76c2871
3 changed files with 36 additions and 21 deletions

View File

@@ -165,8 +165,8 @@ u8 model_write(char* model_name)
u8 _times=0;
u32 _larr = 0;
u8 _len = strlen(model_name);
char _path[_len+1+7+30];
char _datapath[_len+1+7+30];
char _path[_len+1+7+35];
char _datapath[_len+1+7+35];
char _fstr[READLENGTH+1] = {0};
char _sstr[2];
int progress;
@@ -284,7 +284,7 @@ u8 model_read(char* model_name, u32 start, u32 end, u32 gap){
u8 model_switchdata(char* data_name){
u8 _len = strlen(data_name);
char _path[_len+1+7];
char _path[_len+1+7+35];
if(data.array != NULL)modelmym_free("data");
sprintf(_path, "0:/dataset/_data/%s.txt",data_name);
if(f_open(file,(const TCHAR*)_path,1)){