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

Method newTensor

core/engine.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 Ref<Tensor> Engine::newTensor(const TensorDesc& desc, Storage storage)
100 {
101 if (!isSupported(desc))
102 throw std::invalid_argument("unsupported tensor descriptor");
103
104 return makeRef<DeviceTensor>(this, desc, storage);
105 }
106
107 Ref<Tensor> Engine::newTensor(const Ref<Buffer>& buffer, const TensorDesc& desc, size_t byteOffset)
108 {

Callers

nothing calls this directly

Calls 2

isSupportedFunction · 0.70
getEngineMethod · 0.45

Tested by

no test coverage detected