NVIDIA / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
672 stars 263 forks source link

how to read f16 binary file by cc++ #508

Closed azuryl closed 6 years ago

azuryl commented 6 years ago

when I use fread(buffer, sizeof(fp16), 1, fp) printf("buff %f",buffer)

thhe output is not correct

drnikolaev commented 6 years ago

@azuryl https://github.com/NVIDIA/caffe/blob/caffe-0.17/src/caffe/blob.cpp#L293-L316