You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error information:
In instantiation of ‘void caffe::ContrastiveLossLayer::Forward_cpu(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = float]’
Open src/caffe/layers/contrastive_loss_layer.cpp
Replace the 56th line with:
Dtype dist = std::max(margin - (float)sqrt(dist_sq_.cpu_data()[i]), Dtype(0.0));
Save and remake, the problem solved.
The text was updated successfully, but these errors were encountered:
Error information:
In instantiation of ‘void caffe::ContrastiveLossLayer::Forward_cpu(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = float]’
Open src/caffe/layers/contrastive_loss_layer.cpp
Replace the 56th line with:
Dtype dist = std::max(margin - (float)sqrt(dist_sq_.cpu_data()[i]), Dtype(0.0));
Save and remake, the problem solved.
The text was updated successfully, but these errors were encountered: