1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

misc/mnn: update 2.6.0 → 2.8.1

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2024-03-13 07:45:02 -07:00
parent 3c7a5bf57d
commit 723a3c37a6
4 changed files with 35 additions and 19 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= mnn
DISTVERSION= 2.6.0
PORTREVISION= 1
DISTVERSION= 2.8.1
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
@ -53,8 +52,16 @@ CMAKE_ARGS+= -DMNN_USE_AVX:BOOL=OFF \
.endif
do-install-APPS-on:
.for f in MNNV2Basic.out mobilenetTest.out backendTest.out testModel.out getPerformance.out checkInvalidValue.out timeProfile.out quantized.out \
transformer.out train.out rawDataTransform.out dataTransformer.out runTrainDemo.out
.for f in extractForInfer fuseTest \
MNNDump2Json MNNRevert2Buffer MNNV2Basic.out \
ModuleBasic.out \
mobilenetTest.out backendTest.out testModel.out getPerformance.out checkInvalidValue.out \
mobilenetTest.out \
OnnxClip \
SequenceModuleTest.out \
timeProfile.out quantized.out \
runTrainDemo.out \
testModel_expr.out testModelWithDescribe.out testTrain.out timeProfile.out transformer winogradExample.out
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1688710254
SHA256 (alibaba-MNN-2.6.0_GH0.tar.gz) = 9195c79a263eed1ecfc29bc4907b5bcf910a5bac436f8ee49f1464eb48d3e0d8
SIZE (alibaba-MNN-2.6.0_GH0.tar.gz) = 20625817
TIMESTAMP = 1710359574
SHA256 (alibaba-MNN-2.8.1_GH0.tar.gz) = 64a1c91cddc3504d2cff5bc8c9fe592c93ae07eb538482768eb4de45fc6fc7ab
SIZE (alibaba-MNN-2.8.1_GH0.tar.gz) = 20980515

View File

@ -1,18 +1,18 @@
--- tools/train/CMakeLists.txt.orig 2021-06-11 09:17:13 UTC
--- tools/train/CMakeLists.txt.orig 2023-12-29 07:03:26 UTC
+++ tools/train/CMakeLists.txt
@@ -30,6 +30,7 @@ endif()
IF(MNN_SEP_BUILD)
add_library(MNNTrain SHARED ${MNN_TRAIN_SRCS})
@@ -28,6 +28,7 @@ IF(MNN_SEP_BUILD)
add_library(MNNTrainUtils SHARED ${MNN_TRAIN_UTILS_SRCS})
target_link_libraries(MNNTrain MNN MNN_Express)
+ install(TARGETS MNNTrain LIBRARY DESTINATION lib)
target_link_libraries(MNNTrainUtils MNNTrain)
+ install(TARGETS MNNTrain MNNTrainUtils LIBRARY DESTINATION lib)
ELSE()
add_library(MNNTrain OBJECT ${MNN_TRAIN_SRCS})
ENDIF()
@@ -56,6 +57,7 @@ list(APPEND MNN_TRAIN_TOOLS dataTransformer.out)
add_library(MNNTrainUtils OBJECT ${MNN_TRAIN_UTILS_SRCS})
@@ -47,6 +48,7 @@ foreach(TARGET ${MNN_TRAIN_TOOLS})
list(APPEND MNN_TRAIN_TOOLS runTrainDemo.out)
foreach(TARGET ${MNN_TRAIN_TOOLS})
target_link_libraries(${TARGET} PRIVATE ${MNN_DEPS})
+ install(TARGETS MNNTrain LIBRARY DESTINATION lib)
IF(MNN_SEP_BUILD)
target_link_libraries(${TARGET} PRIVATE MNNTrain)
ENDIF()
target_link_libraries(${TARGET} PRIVATE MNNTrainUtils)

View File

@ -1,17 +1,25 @@
%%CONVERTER%%bin/MNNConvert
%%APPS%%bin/MNNDump2Json
%%APPS%%bin/MNNRevert2Buffer
%%APPS%%bin/MNNV2Basic.out
%%APPS%%bin/ModuleBasic.out
%%APPS%%bin/OnnxClip
%%APPS%%bin/SequenceModuleTest.out
%%APPS%%bin/backendTest.out
%%APPS%%bin/checkInvalidValue.out
%%APPS%%bin/dataTransformer.out
%%APPS%%bin/extractForInfer
%%APPS%%bin/fuseTest
%%APPS%%bin/getPerformance.out
%%APPS%%bin/mobilenetTest.out
%%APPS%%bin/quantized.out
%%APPS%%bin/rawDataTransform.out
%%APPS%%bin/runTrainDemo.out
%%APPS%%bin/testModel.out
%%APPS%%bin/testModelWithDescribe.out
%%APPS%%bin/testModel_expr.out
%%APPS%%bin/testTrain.out
%%APPS%%bin/timeProfile.out
%%APPS%%bin/train.out
%%APPS%%bin/transformer.out
%%APPS%%bin/transformer
%%APPS%%bin/winogradExample.out
include/MNN/AutoTime.hpp
include/MNN/ErrorCode.hpp
include/MNN/HalideRuntime.h
@ -35,4 +43,5 @@ include/MNN/expr/Scope.hpp
lib/libMNN.so
%%CONVERTER%%lib/libMNNConvertDeps.so
%%APPS%%lib/libMNNTrain.so
%%APPS%%lib/libMNNTrainUtils.so
%%APPS%%lib/libMNN_Express.so