Cast std::max args to Dtype#3320
Cast std::max args to Dtype#3320ronghanghu merged 1 commit intoBVLC:masterfrom BonsaiAI:disambiguate-dtype
Conversation
|
You can achieve the same effect more cleanly with |
|
I personally think it's more clear/clean, since Anyway, that's just my opinion. Both versions work. |
|
I agree with @seanbell here... in addition, it's best to avoid C-style casting (I can see an argument being made for literals, but we are not only casting literals here). |
|
Updated to use suggested form. |
Cast std::max args to Dtype
|
Thanks @eelstork ! |
This is to avoid ambiguous literals. Consistent with similar idioms in Caffe source. Fixes errors with MSVC compiler.