struct WeightsBuf
说明
WeightsBuf是用来保存卷积weight和bias的数据类型、数据指针和数据长度。

请保证value的内存大小和设置的count值以及数据类型匹配,否则可能会导致程序运行异常。
定义
struct WeightsBuf { DataType type; const void *value; uint64_t count; };
成员
成员名称 |
类型 |
描述 |
---|---|---|
type |
DataType |
数据类型。 |
value |
void * |
数据裸指针。 |
count |
uint64_t |
总长度。 |
父主题: 数据结构参考