Tengine
Tengine copied to clipboard
The space of vector definition in the func create_vector!
trafficstars
Hi, In the source file “vector.c” ,we can see vector_t* create_vector(int elem_size, void (free_data)(void)) v->ahead_num = 8; v->space_num = v->ahead_num; v->real_mem = sys_malloc(v->entry_size * v->space_num + TE_VECTOR_ALIGN_SIZE); If I want to malloc N fp32 space,why (“v->entry_size * v->space_num” which “means v->entry_size *8”)multiply 8 here? As a fp32 just need 4 char space?
BR
hi,anyone could help? tks