MCPcopy Create free account
hub / github.com/RenderKit/oidn / Tensor

Method Tensor

core/tensor.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 // -----------------------------------------------------------------------------------------------
26
27 Tensor::Tensor(const TensorDesc& desc)
28 : TensorDesc(desc)
29 {
30 if (!desc.isValid())
31 throw std::invalid_argument("invalid tensor descriptor");
32 }
33
34 Tensor::Tensor(const Ref<Buffer>& buffer, const TensorDesc& desc, size_t byteOffset)
35 : Memory(buffer, byteOffset),

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected