mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Merge pull request #49954 from tensorflow/cp2_3_369343977
Prevent yet another division by zero
This commit is contained in:
@@ -668,6 +668,11 @@ class Conv2DCustomBackpropInputOp : public OpKernel {
|
||||
dims.batch_size == 1 ||
|
||||
thread_work_unit_size >= min_thread_work_unit_size;
|
||||
|
||||
OP_REQUIRES(
|
||||
context, work_unit_size > 0,
|
||||
errors::InvalidArgument("input, filter_sizes and out_backprop tensors "
|
||||
"must all have at least 1 element"));
|
||||
|
||||
const size_t shard_size =
|
||||
use_parallel_contraction
|
||||
? 1
|
||||
|
||||
Reference in New Issue
Block a user