| 52 | } |
| 53 | |
| 54 | __device__ inline vec3f fetch3(unsigned int x, unsigned int y, unsigned int z) const |
| 55 | { |
| 56 | return vec3f( |
| 57 | fetch(nhwcIndex(z, y, x, 0)), |
| 58 | fetch(nhwcIndex(z, y, x, 1)), |
| 59 | fetch(nhwcIndex(z, y, x, 2)) |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | ///////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 64 | // Store, no broadcasting here. Assume we output full res gradient and then reduce using torch.sum outside |