aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/lut.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/lut.py')
-rw-r--r--ethosu/vela/lut.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/ethosu/vela/lut.py b/ethosu/vela/lut.py
index e3373ca2..69aa2a0e 100644
--- a/ethosu/vela/lut.py
+++ b/ethosu/vela/lut.py
@@ -16,26 +16,16 @@
# Description:
# Functionality for lookup table support.
import uuid
-from functools import lru_cache
import numpy as np
from . import numeric_util
from .high_level_command_stream import CommandType
from .tensor import create_const_tensor
+from .tensor import create_equivalence_id
from .tensor import TensorPurpose
-@lru_cache(maxsize=None)
-def create_equivalence_id(key):
- # Generates equivalence_id based on key.
- # The DMA optimization of LUT-s assumes that 2 LUT tensors are identical
- # if they have the same equivalence_id.
- # So for example all created 256-byte tanh LUT tensors should have
- # the same equivalence id.
- return uuid.uuid4()
-
-
class LUTState:
# Tracks which LUT-s are located in SHRAM.
def __init__(self):