Changes keep_dims to keepdims to remove deprecation warning.
#labeledtensor PiperOrigin-RevId: 186071210
This commit is contained in:
parent
bde6b79a2d
commit
0c14cf398c
@ -951,7 +951,7 @@ def define_reduce_op(op_name, reduce_fn):
|
|||||||
intermediate_axes.append(axis)
|
intermediate_axes.append(axis)
|
||||||
|
|
||||||
reduce_op = reduce_fn(
|
reduce_op = reduce_fn(
|
||||||
labeled_tensor.tensor, reduction_dimensions, keep_dims=True)
|
labeled_tensor.tensor, reduction_dimensions, keepdims=True)
|
||||||
reduce_lt = core.LabeledTensor(reduce_op, intermediate_axes)
|
reduce_lt = core.LabeledTensor(reduce_op, intermediate_axes)
|
||||||
|
|
||||||
return squeeze(reduce_lt, axes_to_squeeze, name=scope)
|
return squeeze(reduce_lt, axes_to_squeeze, name=scope)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user