mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Fix one more FPE.
This commit is contained in:
committed by
Geeta Chavan
parent
aadd94ec39
commit
942934a058
@@ -424,6 +424,9 @@ Status ComputeConv2DDimension(const Conv2DParameters& params,
|
||||
errors::InvalidArgument("Patch depth too large"));
|
||||
const int in_depth = static_cast<int>(in_depth_raw);
|
||||
const int patch_depth = static_cast<int>(patch_depth_raw);
|
||||
TF_REQUIRES(patch_depth > 0,
|
||||
errors::InvalidArgument(
|
||||
"filter depth must be stricly positive, got ", patch_depth));
|
||||
TF_REQUIRES(in_depth % patch_depth == 0,
|
||||
errors::InvalidArgument(
|
||||
"input depth must be evenly divisible by filter depth: ",
|
||||
|
||||
Reference in New Issue
Block a user