1 Star 5 Fork 4

庵中十三居士 / C-LSTM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
temp.c 519 Bytes
一键复制 编辑 原始数据 按行查看 历史
庵中十三居士 提交于 2019-05-27 12:52 . 保存LSTM参数到文件
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
void test_fprintf();
void test_fscanf();
int main(int argc, char *argv[])
{
test_fprintf();
test_fscanf();
return 0;
}
void test_fprintf()
{
FILE *test;
test = fopen("temp.csv", "w");
fprintf(test, "%lf\n", sqrt(2.0));
fclose(test);
}
void test_fscanf()
{
FILE *test;
double result;
test = fopen("temp.csv", "r");
fscanf(test, "%lf", &result);
fclose(test);
printf("Value from file:\"%lf\".\n", result);
}
C
1
https://gitee.com/az13js/C-LSTM.git
git@gitee.com:az13js/C-LSTM.git
az13js
C-LSTM
C-LSTM
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891