MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getNdarrayByteSize

Function getNdarrayByteSize

Source/Falcor/Core/API/PythonHelpers.h:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template<typename... Args>
55size_t getNdarrayByteSize(const pybind11::ndarray<Args...>& array)
56{
57 return getNdarraySize(array) * getDtypeByteSize(array.dtype());
58}
59
60template<typename... Args>
61size_t isNdarrayContiguous(const pybind11::ndarray<Args...>& array)

Callers 4

buffer_from_numpyFunction · 0.85
buffer_from_torchFunction · 0.85
buffer_copy_to_torchFunction · 0.85
texture_from_numpyFunction · 0.85

Calls 3

getNdarraySizeFunction · 0.85
getDtypeByteSizeFunction · 0.85
dtypeMethod · 0.80

Tested by

no test coverage detected