You're reading an pre-release version of this documentation.
For the latest stable release version, please have a look at master.

Function load_text_fp32

Function Documentation

unsigned int load_text_fp32(const char *name, const uint32_t size, void *dst)

将tensor文件读到内存,tensor文件格式为每一行一个浮点类型的数

参数:
  • name -- [IN] 文件名

  • size -- [IN] 待读取的个数

  • dst -- [OUT] 读到的文件内容

返回:

unsigned int 读到的个数