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

Function MLUOP_WIN_API mluOpSetTensorDescriptorPosition

core/tensor.cpp:703–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703mluOpStatus_t MLUOP_WIN_API
704mluOpSetTensorDescriptorPosition(mluOpTensorDescriptor_t desc, int position) {
705 PARAM_CHECK("[mluOpSetTensorDescriptorPosition]", desc != NULL);
706
707 desc->position = position;
708 return MLUOP_STATUS_SUCCESS;
709}
710
711mluOpStatus_t MLUOP_WIN_API mluOpSetTensorDescriptorPositionAndScale(
712 mluOpTensorDescriptor_t desc, int position, float scale) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected