Lines Matching refs:crops
57 crops = array_ops.zeros((2, 2), dtype=crops_dtype)
58 y1 = self.batch_to_space(x, crops, block_size=block_size)
76 crops = np.zeros((2, 2), dtype=np.int32)
79 _ = self.batch_to_space(x_np, crops, block_size)
84 crops = np.zeros((2, 2), dtype=np.int32)
87 out_tf = self.batch_to_space(x_np, crops, block_size)
93 crops = np.zeros((2, 2), dtype=np.int32)
96 out_tf = self.batch_to_space(x_np, crops, block_size)
102 crops = np.zeros((2, 2), dtype=np.int32)
105 out_tf = self.batch_to_space(x_np, crops, block_size)
111 crops = np.zeros((2, 2), dtype=np.int32)
114 _ = self.batch_to_space(x_np, crops, block_size)
236 def _checkGrad(self, x, crops, block_size):
240 tf_y = self.batch_to_space(tf_x, crops, block_size)
259 crops = np.array(
262 self._checkGrad(x, crops, block_size)
292 def _checkGrad(self, x, block_shape, crops, crops_dtype):
294 crops = constant_op.constant(
295 np.array(crops).reshape((len(block_shape), 2)), crops_dtype)
298 tf_y = array_ops.batch_to_space_nd(tf_x, block_shape, crops)
310 def _compare(self, input_shape, block_shape, crops, crops_dtype):
315 self._checkGrad(x, block_shape, crops, crops_dtype)