|
|
@ -339,8 +339,7 @@ ACL_FUNC_VISIBILITY aclError aclmdlLoadFromFile(const char *modelPath, uint32_t
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMem(const void *model, size_t modelSize,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMem(const void *model, size_t modelSize, uint32_t *modelId);
|
|
|
|
uint32_t *modelId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -362,9 +361,8 @@ ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMem(const void *model, size_t modelS
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromFileWithMem(const char *modelPath,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromFileWithMem(const char *modelPath, uint32_t *modelId, void *workPtr,
|
|
|
|
uint32_t *modelId, void *workPtr, size_t workSize,
|
|
|
|
size_t workSize, void *weightPtr, size_t weightSize);
|
|
|
|
void *weightPtr, size_t weightSize);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -387,9 +385,9 @@ ACL_FUNC_VISIBILITY aclError aclmdlLoadFromFileWithMem(const char *modelPath,
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed.
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMemWithMem(const void *model, size_t modelSize,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMemWithMem(const void *model, size_t modelSize, uint32_t *modelId,
|
|
|
|
uint32_t *modelId, void *workPtr, size_t workSize,
|
|
|
|
void *workPtr, size_t workSize, void *weightPtr,
|
|
|
|
void *weightPtr, size_t weightSize);
|
|
|
|
size_t weightSize);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -424,8 +422,8 @@ ACL_FUNC_VISIBILITY aclError aclmdlLoadFromFileWithQ(const char *modelPath, uint
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMemWithQ(const void *model, size_t modelSize, uint32_t *modelId,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlLoadFromMemWithQ(const void *model, size_t modelSize, uint32_t *modelId,
|
|
|
|
const uint32_t *inputQ, size_t inputQNum,
|
|
|
|
const uint32_t *inputQ, size_t inputQNum, const uint32_t *outputQ,
|
|
|
|
const uint32_t *outputQ, size_t outputQNum);
|
|
|
|
size_t outputQNum);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -455,8 +453,8 @@ ACL_FUNC_VISIBILITY aclError aclmdlExecute(uint32_t modelId, const aclmdlDataset
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* aclmdlLoadFromMemWithMem
|
|
|
|
* aclmdlLoadFromMemWithMem
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlExecuteAsync(uint32_t modelId, const aclmdlDataset *input,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlExecuteAsync(uint32_t modelId, const aclmdlDataset *input, aclmdlDataset *output,
|
|
|
|
aclmdlDataset *output, aclrtStream stream);
|
|
|
|
aclrtStream stream);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -832,10 +830,10 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPInputFormat(aclmdlAIPP *aippParmsSet,
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPCscParams(aclmdlAIPP *aippParmsSet, int8_t csc_switch,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPCscParams(aclmdlAIPP *aippParmsSet, int8_t csc_switch, int16_t cscMatrixR0C0,
|
|
|
|
int16_t cscMatrixR0C0, int16_t cscMatrixR0C1, int16_t cscMatrixR0C2,
|
|
|
|
int16_t cscMatrixR0C1, int16_t cscMatrixR0C2, int16_t cscMatrixR1C0,
|
|
|
|
int16_t cscMatrixR1C0, int16_t cscMatrixR1C1, int16_t cscMatrixR1C2,
|
|
|
|
int16_t cscMatrixR1C1, int16_t cscMatrixR1C2, int16_t cscMatrixR2C0,
|
|
|
|
int16_t cscMatrixR2C0, int16_t cscMatrixR2C1, int16_t cscMatrixR2C2,
|
|
|
|
int16_t cscMatrixR2C1, int16_t cscMatrixR2C2,
|
|
|
|
uint8_t cscOutputBiasR0, uint8_t cscOutputBiasR1,
|
|
|
|
uint8_t cscOutputBiasR0, uint8_t cscOutputBiasR1,
|
|
|
|
uint8_t cscOutputBiasR2, uint8_t cscInputBiasR0,
|
|
|
|
uint8_t cscOutputBiasR2, uint8_t cscInputBiasR0,
|
|
|
|
uint8_t cscInputBiasR1, uint8_t cscInputBiasR2);
|
|
|
|
uint8_t cscInputBiasR1, uint8_t cscInputBiasR2);
|
|
|
@ -901,13 +899,9 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPSrcImageSize(aclmdlAIPP *aippParmsSet,
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPScfParams(aclmdlAIPP *aippParmsSet,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPScfParams(aclmdlAIPP *aippParmsSet, int8_t scfSwitch, int32_t scfInputSizeW,
|
|
|
|
int8_t scfSwitch,
|
|
|
|
int32_t scfInputSizeH, int32_t scfOutputSizeW,
|
|
|
|
int32_t scfInputSizeW,
|
|
|
|
int32_t scfOutputSizeH, uint64_t batchIndex);
|
|
|
|
int32_t scfInputSizeH,
|
|
|
|
|
|
|
|
int32_t scfOutputSizeW,
|
|
|
|
|
|
|
|
int32_t scfOutputSizeH,
|
|
|
|
|
|
|
|
uint64_t batchIndex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -926,12 +920,8 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPScfParams(aclmdlAIPP *aippParmsSet,
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPCropParams(aclmdlAIPP *aippParmsSet,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPCropParams(aclmdlAIPP *aippParmsSet, int8_t cropSwitch, int32_t cropStartPosW,
|
|
|
|
int8_t cropSwitch,
|
|
|
|
int32_t cropStartPosH, int32_t cropSizeW, int32_t cropSizeH,
|
|
|
|
int32_t cropStartPosW,
|
|
|
|
|
|
|
|
int32_t cropStartPosH,
|
|
|
|
|
|
|
|
int32_t cropSizeW,
|
|
|
|
|
|
|
|
int32_t cropSizeH,
|
|
|
|
|
|
|
|
uint64_t batchIndex);
|
|
|
|
uint64_t batchIndex);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -972,12 +962,9 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPPaddingParams(aclmdlAIPP *aippParmsSet
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMean(aclmdlAIPP *aippParmsSet,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMean(aclmdlAIPP *aippParmsSet, int16_t dtcPixelMeanChn0,
|
|
|
|
int16_t dtcPixelMeanChn0,
|
|
|
|
int16_t dtcPixelMeanChn1, int16_t dtcPixelMeanChn2,
|
|
|
|
int16_t dtcPixelMeanChn1,
|
|
|
|
int16_t dtcPixelMeanChn3, uint64_t batchIndex);
|
|
|
|
int16_t dtcPixelMeanChn2,
|
|
|
|
|
|
|
|
int16_t dtcPixelMeanChn3,
|
|
|
|
|
|
|
|
uint64_t batchIndex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -995,12 +982,9 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMean(aclmdlAIPP *aippParmsSet,
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMin(aclmdlAIPP *aippParmsSet,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMin(aclmdlAIPP *aippParmsSet, float dtcPixelMinChn0,
|
|
|
|
float dtcPixelMinChn0,
|
|
|
|
float dtcPixelMinChn1, float dtcPixelMinChn2,
|
|
|
|
float dtcPixelMinChn1,
|
|
|
|
float dtcPixelMinChn3, uint64_t batchIndex);
|
|
|
|
float dtcPixelMinChn2,
|
|
|
|
|
|
|
|
float dtcPixelMinChn3,
|
|
|
|
|
|
|
|
uint64_t batchIndex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -1018,12 +1002,9 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPDtcPixelMin(aclmdlAIPP *aippParmsSet,
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
* @see aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP *aippParmsSet,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP *aippParmsSet, float dtcPixelVarReciChn0,
|
|
|
|
float dtcPixelVarReciChn0,
|
|
|
|
float dtcPixelVarReciChn1, float dtcPixelVarReciChn2,
|
|
|
|
float dtcPixelVarReciChn1,
|
|
|
|
float dtcPixelVarReciChn3, uint64_t batchIndex);
|
|
|
|
float dtcPixelVarReciChn2,
|
|
|
|
|
|
|
|
float dtcPixelVarReciChn3,
|
|
|
|
|
|
|
|
uint64_t batchIndex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
@ -1040,9 +1021,7 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP *aippParmsSet,
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetInputAIPP(uint32_t modelId,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetInputAIPP(uint32_t modelId, aclmdlDataset *dataset, size_t index,
|
|
|
|
aclmdlDataset *dataset,
|
|
|
|
|
|
|
|
size_t index,
|
|
|
|
|
|
|
|
const aclmdlAIPP *aippParmsSet);
|
|
|
|
const aclmdlAIPP *aippParmsSet);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -1060,9 +1039,7 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetInputAIPP(uint32_t modelId,
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPByInputIndex(uint32_t modelId,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPByInputIndex(uint32_t modelId, aclmdlDataset *dataset, size_t index,
|
|
|
|
aclmdlDataset *dataset,
|
|
|
|
|
|
|
|
size_t index,
|
|
|
|
|
|
|
|
const aclmdlAIPP *aippParmsSet);
|
|
|
|
const aclmdlAIPP *aippParmsSet);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -1081,9 +1058,7 @@ ACL_FUNC_VISIBILITY aclError aclmdlSetAIPPByInputIndex(uint32_t modelId,
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* @see aclmdlLoadFromFile | aclmdlLoadFromMem | aclmdlLoadFromFileWithMem |
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
* aclmdlLoadFromMemWithMem | aclmdlGetInputIndexByName | aclmdlCreateAIPP
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlGetAippType(uint32_t modelId,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type,
|
|
|
|
size_t index,
|
|
|
|
|
|
|
|
aclmdlInputAippType *type,
|
|
|
|
|
|
|
|
size_t *dynamicAttachedDataIndex);
|
|
|
|
size_t *dynamicAttachedDataIndex);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -1120,9 +1095,10 @@ ACL_FUNC_VISIBILITY aclError aclmdlGetFirstAippInfo(uint32_t modelId, size_t ind
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed
|
|
|
|
* @retval ACL_SUCCESS The function is successfully executed
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
* @retval OtherValues Failure
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlCreateAndGetOpDesc(uint32_t deviceId, uint32_t streamId,
|
|
|
|
ACL_FUNC_VISIBILITY aclError aclmdlCreateAndGetOpDesc(uint32_t deviceId, uint32_t streamId, uint32_t taskId,
|
|
|
|
uint32_t taskId, char *opName, size_t opNameLen, aclTensorDesc **inputDesc, size_t *numInputs,
|
|
|
|
char *opName, size_t opNameLen, aclTensorDesc **inputDesc,
|
|
|
|
aclTensorDesc **outputDesc, size_t *numOutputs);
|
|
|
|
size_t *numInputs, aclTensorDesc **outputDesc,
|
|
|
|
|
|
|
|
size_t *numOutputs);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ingroup AscendCL
|
|
|
|
* @ingroup AscendCL
|
|
|
|