MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / Tensor

Class Tensor

gpu.hpp:102–105  ·  view source on GitHub ↗

* @brief Represents a tensor on the GPU, which is a buffer of values with a * shape. * * @code * Tensor tensor = createTensor(ctx, {256, 256}, kf32); * @endcode */

Source from the content-addressed store, hash-verified

100 * @endcode
101 */
102struct Tensor {
103 Array data;
104 Shape shape;
105};
106
107/**
108 * @brief Represents a non-owning view into a tensor specifying an offset and a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected