Set user memory primitive using specified dimensions, memory format tag and data_buffer. Function automatically uses element data type by using input type T used for creating call object. In a nutshell, function allows user to describe the input tensor to an operation. E.g., filter of Conv2D is of shape {1, 2, 3, 4}, and memory format tag HWIO, and the buffer that contains actual values is pointe
| 1302 | /// memory format tag HWIO, and the buffer that contains actual values is |
| 1303 | /// pointed by data_buffer. |
| 1304 | inline void SetUsrMem(const memory::dims& dim, memory::format_tag fm, |
| 1305 | void* data_buffer = nullptr) { |
| 1306 | auto md = memory::desc(dim, MklDnnType<T>(), fm); |
| 1307 | SetUsrMem(md, data_buffer); |
| 1308 | } |
| 1309 | |
| 1310 | inline void SetUsrMem(const memory::dims& dim, memory::format_tag fm, |
| 1311 | const Tensor* tensor) { |