diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-03-20 18:07:54 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-10-11 15:42:55 +0100 |
commit | 62768232c5fe4ed6b87136c336b65e13d030e9d4 (patch) | |
tree | 847c36a2f7e092982bc1d7a66d0bf601447c8d20 /src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py | |
parent | 446c379c92e15ad8f24ed0db853dd0fc9c271151 (diff) | |
download | mlia-62768232c5fe4ed6b87136c336b65e13d030e9d4.tar.gz |
MLIA-843 Add unit tests for module mlia.nn.rewrite
Note: The unit tests mostly call the main functions from the respective
modules only.
Change-Id: Ib2ce5c53d0c3eb222b8b8be42fba33ac8e007574
Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
Diffstat (limited to 'src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py')
-rw-r--r-- | src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py b/src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py index ac3e875..2141003 100644 --- a/src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py +++ b/src/mlia/nn/rewrite/core/utils/numpy_tfrecord.py @@ -63,9 +63,6 @@ class NumpyTFWriter: def __exit__(self, type, value, traceback): self.close() - def __del__(self): - self.close() - def write(self, array_dict): type_map = {n: str(a.dtype.name) for n, a in array_dict.items()} self.type_map.update(type_map) |