MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetUsrMem

Method SetUsrMem

tensorflow/core/util/mkl_util.h:1304–1308  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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) {

Callers 15

ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ConfigureWorkspaceMethod · 0.80
ComputeMethod · 0.80
ConfigureInputMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64