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

Function MLUOP_WIN_API mluOpGetTensorDescriptorPosition

core/tensor.cpp:771–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771mluOpStatus_t MLUOP_WIN_API
772mluOpGetTensorDescriptorPosition(mluOpTensorDescriptor_t desc, int *position) {
773 PARAM_CHECK("[mluOpGetTensorDescriptorPosition]", desc != NULL);
774 PARAM_CHECK("[mluOpGetTensorDescriptorPosition]", position != NULL);
775
776 *position = desc->position;
777 return MLUOP_STATUS_SUCCESS;
778}
779
780mluOpStatus_t MLUOP_WIN_API mluOpGetTensorDescriptorPositionAndScale(
781 mluOpTensorDescriptor_t desc, int *position, float *scale) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected