MCPcopy Create free account
hub / github.com/Cambricon/mlu-ops / setTensorDescriptorPointerMode

Method setTensorDescriptorPointerMode

core/tensor.cpp:472–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471
472mluOpStatus_t mluOpTensorStruct::setTensorDescriptorPointerMode(
473 mluOpPointerMode_t pointer_mode) {
474 PARAM_CHECK("[mluOpSetTensorDescriptorPointerMode]", pointer_mode >= 0);
475
476 this->pointer_mode = pointer_mode;
477 return MLUOP_STATUS_SUCCESS;
478}
479
480mluOpStatus_t mluOpTensorStruct::getTensorDescriptorEx(
481 mluOpTensorLayout_t *layout, mluOpDataType_t *dtype, int *dimNb,

Calls

no outgoing calls

Tested by

no test coverage detected