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

Function MLUOP_WIN_API mluOpGetTensorDescriptorPositionAndScale

core/tensor.cpp:780–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780mluOpStatus_t MLUOP_WIN_API mluOpGetTensorDescriptorPositionAndScale(
781 mluOpTensorDescriptor_t desc, int *position, float *scale) {
782 PARAM_CHECK("[mluOpGetTensorDescriptorPositionAndScale]", desc != NULL);
783 PARAM_CHECK("[mluOpGetTensorDescriptorPositionAndScale]", position != NULL);
784 PARAM_CHECK("[mluOpGetTensorDescriptorPositionAndScale]", scale != NULL);
785
786 *position = desc->position;
787 *scale = desc->scale;
788 return MLUOP_STATUS_SUCCESS;
789}
790
791mluOpStatus_t MLUOP_WIN_API mluOpGetTensorDescriptorPositionScaleAndOffset(
792 mluOpTensorDescriptor_t desc, int *position, float *scale, int *offset) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected