-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f29e6c1
commit a059245
Showing
1 changed file
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPDX-FileCopyrightText: (c) 2024 Tenstorrent AI ULC | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from dataclasses import dataclass | ||
import jax | ||
from typing import Sequence | ||
|
||
from .workload import Workload | ||
|
||
|
||
@dataclass | ||
class MultichipWorkload(Workload): | ||
""" | ||
Convenience dataclass storing a callable and its positional and keyword arguments. | ||
""" | ||
mesh: jax.sharding.Mesh = None | ||
in_specs: Sequence[jax.sharding.PartitionSpec] = None | ||
|