Home
last modified time | relevance | path

Searched refs:sample_f (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op_test.cc94 const Vector2f& scale, const Vector2f& sample_f, float* dest) { in Sample() argument
104 std::ceil(sample_f.y() - kernel.Radius() * kernel_scale.y() - 0.5f))); in Sample()
108 sample_f.y() + kernel.Radius() * kernel_scale.y() - 0.5f))) + in Sample()
113 std::ceil(sample_f.x() - kernel.Radius() * kernel_scale.x() - 0.5f))); in Sample()
118 sample_f.x() + kernel.Radius() * kernel_scale.x() - 0.5f))) + in Sample()
122 if (sample_f.x() < 0.0f || sample_f.y() < 0.0f || sample_f.x() > in_width || in Sample()
123 sample_f.y() > in_height) { in Sample()
130 float y_kernel_pos = static_cast<float>(y) + 0.5f - sample_f.y(); in Sample()
133 float x_kernel_pos = static_cast<float>(x) + 0.5f - sample_f.x(); in Sample()
Dscale_and_translate_op.cc84 const float sample_f = col_f * inv_scale + inv_translate; in ComputeSpansCore() local
87 if (sample_f < 0 || sample_f > input_size) { in ComputeSpansCore()
93 std::ceil(sample_f - kernel.Radius() * kernel_scale - 0.5f); in ComputeSpansCore()
95 std::floor(sample_f + kernel.Radius() * kernel_scale - 0.5f); in ComputeSpansCore()
106 float kernel_pos = static_cast<float>(source) + 0.5f - sample_f; in ComputeSpansCore()