-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compile] fix compile forge module (#162)
Fixes a bug in compile, where non-forge (non-pybuda) modules where compiled, but the forge modules where ignored. Also, adding some type aliases and small refactor. Issue #150
- Loading branch information
Showing
4 changed files
with
82 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: © 2024 Tenstorrent AI ULC | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import torch | ||
import tensorflow as tf | ||
|
||
from .module import PyBudaModule | ||
from .tensor import Tensor | ||
|
||
FrameworkModule = torch.nn.Module | tf.keras.Model | ||
FrameworkTensor = torch.Tensor | tf.Tensor | ||
AnyModule = FrameworkModule | PyBudaModule | ||
AnyTensor = FrameworkTensor | Tensor | ||
|
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