-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/fix: Working Windows build + partial Dynamo support
- Loading branch information
Showing
14 changed files
with
513 additions
and
372 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
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 |
---|---|---|
@@ -1,3 +1,28 @@ | ||
from torch_tensorrt._C import EngineCapability, TensorFormat, dtype # noqa: F401 | ||
from enum import Enum, auto | ||
|
||
from tensorrt import DeviceType # noqa: F401 | ||
# from tensorrt import DeviceType # noqa: F401 | ||
|
||
|
||
class dtype(Enum): | ||
float32 = auto() | ||
half = auto() | ||
float16 = auto() | ||
float = auto() | ||
int8 = auto() | ||
int32 = auto() | ||
int = auto() | ||
int64 = auto() | ||
float64 = auto() | ||
bool = auto() | ||
unknown = auto() | ||
|
||
|
||
class TensorFormat(Enum): | ||
contiguous = auto() | ||
channels_last = auto() | ||
|
||
|
||
class EngineCapability(Enum): | ||
safe_gpu = auto() | ||
safe_dla = auto() | ||
default = auto() |
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
Oops, something went wrong.