We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7010ef + 28166a0 commit 3cfca30Copy full SHA for 3cfca30
esp-dl/dl/module/include/dl_module_base.hpp
@@ -46,6 +46,12 @@ class Module {
46
*/
47
virtual ~Module();
48
49
+#if CONFIG_SPIRAM
50
+ void *operator new(size_t size) { return heap_caps_malloc(size, MALLOC_CAP_SPIRAM); }
51
+
52
+ void operator delete(void *ptr) { heap_caps_free(ptr); }
53
+#endif
54
55
/**
56
* @brief Get the tensor index of this module's outputs
57
*
esp-dl/dl/tensor/include/dl_tensor_base.hpp
@@ -137,6 +137,12 @@ class TensorBase {
137
}
138
139
140
141
142
143
144
145
146
147
* @brief Assign tensor to this tensor
148
0 commit comments