FilterLayer
may produce empty empty blob and lead to crash
#2623
Labels
FilterLayer
may produce empty empty blob and lead to crash
#2623
Hi,
When a empty selection mask is ported to
FilterLayer
, it will produces empty tops. I found this empty tops may cause several issues.EuclideanLoss
) will produces NaN since they divide the summation loss byN
, the input blob size.add_kernel
forcaffe_gpu_add
) will fail because they useCAFFE_GET_BLOCKS(N)
and whenN == 0
this produces 0 blocks, which makes CUDA unhappy.So maybe there should be some check added to handle empty blob case generated by
FilterLayer
The text was updated successfully, but these errors were encountered: