mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Merge pull request #49960 from geetachavan1/cherrypicks_P9I9Q
Fix one more FPE.
This commit is contained in:
commit
321ae0925e
|
|
@ -425,6 +425,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: ",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user