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