| 29 | } |
| 30 | |
| 31 | static inline TinyNNStatus alloc_tensor(Tensor* tensor, VM* vm) { |
| 32 | DeviceModel* model = get_active_device_model(vm); |
| 33 | return alloc_tensor_opt(tensor, &(model->opt)); |
| 34 | } |
| 35 | |
| 36 | static inline void free_dev_ptr(void* dev_ptr, VM* vm) { |
| 37 | if (dev_ptr) { |
no test coverage detected