caffe icon indicating copy to clipboard operation
caffe copied to clipboard

what is the role of blob->set_prv_data_descriptor(NULL);

Open haidj opened this issue 9 years ago • 2 comments

Hello all,

I have a question in the source code of mkldnn.

Why does set_prv_data_descriptor call twice with different parameters in mkldnn_memory.cpp?

blob->set_prv_data_descriptor(this->get_shared_ptr(), false); . blob->set_prv_data_descriptor(NULL); please see 251-254 line If set_prv_data_descriptor (NULL) is commented out, the processing speed of bwdd_top_diff-> sync_before_read () is improved in backward convolution.

But, I wonder if this will give a reasonable result.

Thank you Daejin Jung

haidj avatar May 26 '17 16:05 haidj

Will be available in upcoming release.

hshen14 avatar Jun 06 '17 01:06 hshen14