aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/api.py
diff options
context:
space:
mode:
authorLouis Verhaard <louis.verhaard@arm.com>2020-11-18 18:53:24 +0100
committerLouis Verhaard <louis.verhaard@arm.com>2020-11-25 17:27:32 +0100
commit11831ce127904b7cbf9641642e5414818a2cb40d (patch)
tree9e22021566c9ecc2660289ad91b5fdf9bc48876b /ethosu/vela/api.py
parent3adc1e44125dc42e04568a5da5f7a7a2af3909df (diff)
downloadethos-u-vela-11831ce127904b7cbf9641642e5414818a2cb40d.tar.gz
MLBEDSW-3424: Added API.md
- Added API.md that describes the external APIs. - Renamed npu_get_api_version Signed-off-by: Louis Verhaard <louis.verhaard@arm.com> Change-Id: I6e6e6103a889da656b4e00c3cce3eee60dfa844a
Diffstat (limited to 'ethosu/vela/api.py')
-rw-r--r--ethosu/vela/api.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ethosu/vela/api.py b/ethosu/vela/api.py
index 22f81d09..e6286008 100644
--- a/ethosu/vela/api.py
+++ b/ethosu/vela/api.py
@@ -25,9 +25,9 @@ from typing import Tuple
import numpy
-API_version_major = 1
-API_version_minor = 0
-api_version = f"{API_version_major}.{API_version_minor}"
+API_VERSION_MAJOR = 1
+API_VERSION_MINOR = 0
+API_VERSION = f"{API_VERSION_MAJOR}.{API_VERSION_MINOR}"
class NpuAccelerator(Enum):
@@ -388,13 +388,13 @@ class NpuElementWiseOperation(NpuBlockOperation):
self.rescale: Optional[Tuple] = None
-def npu_get_API_version():
+def npu_get_api_version():
"""
Public facing API to get the API version
:return: int, the 16 most significant bits, corresponding to major version
the 16 least significant bits, corresponding to minor version
"""
- version = (API_version_major << 16) | (API_version_minor & 0xFFFF)
+ version = (API_VERSION_MAJOR << 16) | (API_VERSION_MINOR & 0xFFFF)
return version