From b1fe97b28d14c02d55e2032cd72cd608908f6d0c Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 24 Nov 2019 17:48:33 +0000 Subject: [PATCH] New port: misc/py-tflite: Parse TensorFlow Lite models in Python --- misc/Makefile | 1 + misc/py-tflite/Makefile | 24 ++++++++++++++++++++++++ misc/py-tflite/distinfo | 3 +++ misc/py-tflite/pkg-descr | 6 ++++++ 4 files changed, 34 insertions(+) create mode 100644 misc/py-tflite/Makefile create mode 100644 misc/py-tflite/distinfo create mode 100644 misc/py-tflite/pkg-descr diff --git a/misc/Makefile b/misc/Makefile index 32000ed48330..cf0fbea84ea1 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -411,6 +411,7 @@ SUBDIR += py-spdx-lookup SUBDIR += py-spdx-tools SUBDIR += py-tflearn + SUBDIR += py-tflite SUBDIR += py-toil SUBDIR += py-tqdm SUBDIR += py-tvm diff --git a/misc/py-tflite/Makefile b/misc/py-tflite/Makefile new file mode 100644 index 000000000000..20c56badf349 --- /dev/null +++ b/misc/py-tflite/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= tflite +DISTVERSION= g20191030 +CATEGORIES= misc python # machine-learning +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Parse TensorFlow Lite models in Python + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flatbuffers>0:devel/py-flatbuffers@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist +USE_GITHUB= yes +GH_ACCOUNT= jackwish +GH_TAGNAME= 7814b03 + +NO_ARCH= yes + +.include diff --git a/misc/py-tflite/distinfo b/misc/py-tflite/distinfo new file mode 100644 index 000000000000..45888ade5060 --- /dev/null +++ b/misc/py-tflite/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1574616813 +SHA256 (jackwish-tflite-g20191030-7814b03_GH0.tar.gz) = cc8dd90d9b11d9a97945f8068ed6d1aab42473bf416e8b1f13415d5bcfad178f +SIZE (jackwish-tflite-g20191030-7814b03_GH0.tar.gz) = 3883211 diff --git a/misc/py-tflite/pkg-descr b/misc/py-tflite/pkg-descr new file mode 100644 index 000000000000..0425e6600939 --- /dev/null +++ b/misc/py-tflite/pkg-descr @@ -0,0 +1,6 @@ +Python package to parse TFLite models (*.tflite) easily. + +The tflite package is built to parse the TFLite models from the schema.fbs +file supplied in the TensorFlow project. + +WWW: https://jackwish.net/tflite/