
Contents
More
The function convers an onnx file into some code.
python-mcompare-m1model1.onnx-m2model2.onnx-v1
Output example:
[compare_onnx_execution]got2inputs[compare_onnx_execution]executefirstmodel[compare_onnx_execution]got5results[compare_onnx_execution]executesecondmodel[compare_onnx_execution]got5results[compare_onnx_execution]computeeditdistance[compare_onnx_execution]got4pairs[compare_onnx_execution]done=|INPUTfloat325x6AAAAX|INPUTfloat325x6AAAAX=|INPUTfloat325x6AAAAY|INPUTfloat325x6AAAAY=|RESULTfloat325x6AABBAddres|RESULTfloat325x6AABBAddres=|RESULTfloat325x6AAAACosZ|RESULTfloat325x6AAAACosZ
usage:compare[-h]-m1MODEL1-m2MODEL2[-m{execute,nodes}][-vVERBOSE][-cCOLUMN_SIZE][-dDISCREPANCIES]Comparestheexecutionoftwoonnxmodels.options:-h,--helpshowthishelpmessageandexit-m1MODEL1,--model1MODEL1firstonnxmodel-m2MODEL2,--model2MODEL2secondonnxmodel-m{execute,nodes},--mode{execute,nodes}comparetheexecution('execute')orthenodesonly('nodes')-vVERBOSE,--verboseVERBOSEverbosity-cCOLUMN_SIZE,--column-sizeCOLUMN_SIZEcolumnsizewhendisplayingtheresults-dDISCREPANCIES,--discrepanciesDISCREPANCIESshowprecisediscrepancieswhenmodeisexecutionThisisusedwhentwomodelsaredifferentbutshouldproducethesameresults.
See functiononnx_array_api.reference.compare_onnx_execution().
The function convers an onnx file into some code.
python-mtranslate...
Output example:
notyetready
usage:translate[-h]-mMODEL[-a{onnx,light}]Translatesanonnxmodelintoapieceofcodetoreplicateit.Theresultisprintedonthestandardoutput.options:-h,--helpshowthishelpmessageandexit-mMODEL,--modelMODELonnxmodeltotranslate-a{onnx,light},--api{onnx,light}APItochoose,APIfromonnxpackageorlightAPI.Thisismostlyusedtowriteunittestswithoutaddinganonnxfiletotherepository.