Home | History | Annotate | Download | only in kernels

Lines Matching refs:image_width

123     // The shape of 'image' is [batch_size, image_height, image_width,
140 const int image_width = image.dim_size(2);
143 context, image_height > 0 && image_width > 0,
211 const int image_width = image.dimension(2);
236 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1)
257 ? x1 * (image_width - 1) + x * width_scale
258 : 0.5 * (x1 + x2) * (image_width - 1);
259 if (in_x < 0 || in_x > image_width - 1) {
358 const int image_width = internal::SubtleMustCopy(image_size_vec(2));
361 context, image_height > 0 && image_width > 0,
372 0, TensorShape({batch_size, image_height, image_width, depth}),
407 const int image_width = grads_image.dimension(2);
431 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1)
447 ? x1 * (image_width - 1) + x * width_scale
448 : 0.5 * (x1 + x2) * (image_width - 1);
449 if (in_x < 0 || in_x > image_width - 1) {
495 // The shape of 'image' is [batch_size, image_height, image_width, depth].
516 const int image_width = image.dim_size(2);
518 context, image_height > 0 && image_width > 0,
573 const int image_width = image.dimension(2);
599 ? static_cast<float>(image_width - 1) / (crop_width - 1)
619 ? x1 * (image_width - 1) + x * width_scale
620 : 0.5 * (x1 + x2) * (image_width - 1);
621 if (in_x < 0 || in_x > image_width - 1) {
658 image_grad_x * (image_width - 1 - x * width_ratio);
661 grads_boxes(b, 1) += image_grad_x * 0.5 * (image_width - 1);
662 grads_boxes(b, 3) += image_grad_x * 0.5 * (image_width - 1);