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

Function MLUOP_WIN_API mluOpInitTensorSetMemberDescriptor

core/tensor.cpp:913–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913mluOpStatus_t MLUOP_WIN_API mluOpInitTensorSetMemberDescriptor(
914 mluOpTensorSetDescriptor_t tensorSet, const int tensorSetDimNb,
915 const int *tensorIndex, mluOpTensorLayout_t layout, mluOpDataType_t dtype,
916 const int dimNb, const int *dimSize) {
917 PARAM_CHECK("[mluOpInitTensorSetMemberDescriptor]",
918 tensorSet->dim_num == tensorSetDimNb);
919 auto ts = tensorSet->getTensor(tensorIndex);
920 PARAM_CHECK("[mluOpInitTensorSetMemberDescriptor]",
921 MLUOP_STATUS_SUCCESS ==
922 mluOpSetTensorDescriptor(ts, layout, dtype, dimNb, dimSize));
923 return MLUOP_STATUS_SUCCESS;
924}
925
926mluOpStatus_t MLUOP_WIN_API mluOpInitTensorSetMemberDescriptor_v2(
927 mluOpTensorSetDescriptor_t tensorSet, const int tensorSetDimNb,

Callers

nothing calls this directly

Calls 1

getTensorMethod · 0.80

Tested by

no test coverage detected