forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
40 lines (32 loc) · 1.15 KB
/
__init__.py
File metadata and controls
40 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from dataclasses import dataclass
@dataclass
class XNNPACKOptions(object):
quantization: bool
delegation: bool
MODEL_NAME_TO_OPTIONS = {
"linear": XNNPACKOptions(True, True),
"add": XNNPACKOptions(True, True),
"add_mul": XNNPACKOptions(True, True),
"dl3": XNNPACKOptions(True, True),
"ic3": XNNPACKOptions(True, True),
"ic4": XNNPACKOptions(True, True),
"mv2": XNNPACKOptions(True, True),
"mv3": XNNPACKOptions(True, True),
"resnet18": XNNPACKOptions(True, True),
"resnet50": XNNPACKOptions(True, True),
"vit": XNNPACKOptions(True, True),
"w2l": XNNPACKOptions(True, True),
"edsr": XNNPACKOptions(True, True),
"mobilebert": XNNPACKOptions(True, True),
"llama2": XNNPACKOptions(False, True),
"emformer_join": XNNPACKOptions(True, True),
"emformer_predict": XNNPACKOptions(True, True),
"emformer_transcribe": XNNPACKOptions(True, True),
}
__all__ = [MODEL_NAME_TO_OPTIONS]