MCPcopy Create free account
hub / github.com/3DAnimals/3DAnimals / fetch3

Method fetch3

model/render/renderutils/c_src/tensor.h:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

vec3fClass · 0.85

Tested by

no test coverage detected