Created by: kuke
Fix the bug when the input data type of pad2d is float16
RuntimeError: boost::bad_get: failed value get using boost::get