| 153 | |
| 154 | template <typename T> |
| 155 | static 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 | |
| 160 | static litert::Options create_cpu_options(size_t num_threads, uint32_t xnnpack_flags) { |
| 161 | auto options = get_litert_value(litert::Options::Create()); |
nothing calls this directly
no test coverage detected