Searched refs:in_loc (Results 1 – 2 of 2) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/image/ |
D | resize_bicubic_op.cc | 91 const int64 in_loc = std::floor(in_loc_f); in GetWeightsAndIndices() local 92 const float delta = in_loc_f - in_loc; in GetWeightsAndIndices() 102 out->index_0 = Bound(in_loc - 1, limit); in GetWeightsAndIndices() 104 (out->index_0 == in_loc - 1 ? coeffs_table[offset * 2 + 1] : 0.0f); in GetWeightsAndIndices() 105 out->index_1 = Bound(in_loc, limit); in GetWeightsAndIndices() 106 out->weight_1 = (out->index_1 == in_loc ? coeffs_table[offset * 2] : 0.0f); in GetWeightsAndIndices() 107 out->index_2 = Bound(in_loc + 1, limit); in GetWeightsAndIndices() 109 (out->index_2 == in_loc + 1 ? coeffs_table[(kTableSize - offset) * 2] in GetWeightsAndIndices() 111 out->index_3 = Bound(in_loc + 2, limit); in GetWeightsAndIndices() 112 out->weight_3 = (out->index_3 == in_loc + 2 in GetWeightsAndIndices() [all …]
|
D | resize_bicubic_op_test.cc | 93 const int64 in_loc = scale * out_loc; in GetWeightsAndIndices() local 94 const float delta = scale * out_loc - in_loc; in GetWeightsAndIndices() 100 *indices = {{Bound(in_loc - 1, limit), Bound(in_loc, limit), in GetWeightsAndIndices() 101 Bound(in_loc + 1, limit), Bound(in_loc + 2, limit)}}; in GetWeightsAndIndices()
|