Home
last modified time | relevance | path

Searched refs:offset_height (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Drandom_crop_op.cc80 int32 offset_height = 0; in Compute() local
90 offset_height = random.Rand32() % (height - target_height + 1); in Compute()
102 input_data(y + offset_height, x + offset_width, c); in Compute()
Dsample_distorted_bounding_box_op.cc366 const int offset_height = crop_rect.min_y_; in Compute() local
373 OP_REQUIRES(context, height >= target_height + offset_height, in Compute()
376 target_height, " + ", offset_height)); in Compute()
394 begin_data(0) = T(offset_height); in Compute()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py1499 def _CropToBoundingBox(self, x, offset_height, offset_width, target_height, argument
1502 offset_height = ops.convert_to_tensor(offset_height)
1512 y = image_ops.crop_to_bounding_box(x_tensor, offset_height, offset_width,
1523 offset_height, argument
1534 y_tf = self._CropToBoundingBox(x, offset_height, offset_width,
1542 offset_height, argument
1553 self._CropToBoundingBox(x, offset_height, offset_width, target_height,
1577 offset_height, offset_width = [1, 0]
1580 self._assertReturns(x, x_shape, offset_height, offset_width, y, y_shape)
1582 offset_height, offset_width = [0, 1]
[all …]
Dimage_ops_impl.py663 def pad_to_bounding_box(image, offset_height, offset_width, target_height, argument
713 after_padding_height = target_height - offset_height - height
715 assert_ops += _assert(offset_height >= 0, ValueError,
728 0, 0, offset_height, after_padding_height, offset_width,
746 def crop_to_bounding_box(image, offset_height, offset_width, target_height, argument
797 assert_ops += _assert(offset_height >= 0, ValueError,
805 assert_ops += _assert(height >= (target_height + offset_height), ValueError,
810 image, array_ops.stack([0, offset_height, offset_width, 0]),
/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Dresnet_preprocessing.py119 offset_height = ((image_height - padded_center_crop_size) + 1) // 2
121 crop_window = tf.stack([offset_height, offset_width,
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.image.pbtxt49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
137 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_jpeg_op_test.py98 offset_height=crop_window[0],
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.image.pbtxt49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
137 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SampleDistortedBoundingBox.pbtxt19 1-D, containing `[offset_height, offset_width, 0]`. Provide as input to
Dapi_def_SampleDistortedBoundingBoxV2.pbtxt28 1-D, containing `[offset_height, offset_width, 0]`. Provide as input to