MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ address()

uint64_t MayaFlux::Yantra::TensorKernels::PackedWeights::address ( uint64_t buffer,
size_t index ) const
inlinenodiscardnoexcept

Device address of one tensor, given the address of the uploaded buffer.

Parameters
bufferDevice address of the buffer upload_packed_weights filled.
indexPosition of the tensor in the requirements.

Definition at line 86 of file Yantra/Executors/TensorKernels/Weights.hpp.

87 {
88 return buffer + offsets[index] * sizeof(float);
89 }
std::vector< size_t > offsets
Element offset of each required tensor in values.

References offsets.