-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add more data generation methods and add the output_signed define * Change MemoryLayout to NnxWeight * Fix regen option of testgen * Fix global shift type to uint8 * Add NnxMapping
- Loading branch information
Showing
10 changed files
with
291 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from enum import Enum | ||
from typing import Dict, NamedTuple, Type | ||
|
||
from Ne16TestConf import Ne16TestConf | ||
from Ne16Weight import Ne16Weight | ||
from NeurekaTestConf import NeurekaTestConf | ||
from NeurekaWeight import NeurekaWeight | ||
from NnxTestClasses import NnxTestConf, NnxWeight | ||
|
||
|
||
class NnxName(Enum): | ||
ne16 = "ne16" | ||
neureka = "neureka" | ||
|
||
def __str__(self): | ||
return self.value | ||
|
||
|
||
class NnxAcceleratorClasses(NamedTuple): | ||
testConfCls: Type[NnxTestConf] | ||
weightCls: Type[NnxWeight] | ||
|
||
|
||
NnxMapping: Dict[NnxName, NnxAcceleratorClasses] = { | ||
NnxName.ne16: NnxAcceleratorClasses(Ne16TestConf, Ne16Weight), | ||
NnxName.neureka: NnxAcceleratorClasses(NeurekaTestConf, NeurekaWeight), | ||
} |
Oops, something went wrong.