Update tf.nn.[max,avg]_pool to specify that it accepts list/tuple stride and kernel...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 9 May 2018 20:28:00 +0000 (13:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 9 May 2018 20:49:41 +0000 (13:49 -0700)
commited325becde6bf8f8c86cc39c977ac32b1ea7ef5d
treeaa75bfe34dc988419fafb860f84f72c89ec3c15a
parente1347ba769b98e260d36e895be2963af35c88d18
Update tf.nn.[max,avg]_pool to specify that it accepts list/tuple stride and kernel arguments, not tensor arguments.

If you actually specify a tensor argument here, you get the error:
TypeError: Expected list for 'ksize' argument to 'avg_pool' Op, not <tf.Tensor 'Const_1:0' shape=(4,) dtype=int32>.
PiperOrigin-RevId: 196019507
tensorflow/python/ops/nn_ops.py