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

Function MLUOP_WIN_API mluOpGetTensorSetDescriptor

core/tensor.cpp:895–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895mluOpStatus_t MLUOP_WIN_API mluOpGetTensorSetDescriptor(
896 mluOpTensorSetDescriptor_t tensorSet, int *tensorSetDimNb, int *dimSize) {
897 *tensorSetDimNb = tensorSet->dim_num;
898 for (int i = 0; i < tensorSet->dim_num; i++) {
899 dimSize[i] = tensorSet->dim_set[i];
900 }
901 return MLUOP_STATUS_SUCCESS;
902}
903
904mluOpStatus_t MLUOP_WIN_API
905mluOpDestroyTensorSetDescriptor(mluOpTensorSetDescriptor_t tensorSet) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected