MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / scoped_lock

Function scoped_lock

kleidiai-examples/audiogen/app/audiogen.cpp:155–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154template <typename T>
155static std::pair<litert::TensorBufferScopedLock, T*> scoped_lock(litert::TensorBuffer& buffer,
156 litert::TensorBuffer::LockMode mode) {
157 return get_litert_value(litert::TensorBufferScopedLock::Create<T>(buffer, mode));
158}
159
160static litert::Options create_cpu_options(size_t num_threads, uint32_t xnnpack_flags) {
161 auto options = get_litert_value(litert::Options::Create());

Callers

nothing calls this directly

Calls 1

get_litert_valueFunction · 0.85

Tested by

no test coverage detected