-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tensorflow
: add tf.distribute.experimental.coordinator.RemoteValue
(
- Loading branch information
1 parent
d5ff34e
commit 69354d7
Showing
2 changed files
with
14 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
12 changes: 12 additions & 0 deletions
12
stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi
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,12 @@ | ||
from _typeshed import Incomplete | ||
from typing import Generic, TypeVar | ||
|
||
from tensorflow._aliases import AnyArray | ||
|
||
_Value = TypeVar("_Value", covariant=True) | ||
|
||
class RemoteValue(Generic[_Value]): | ||
def fetch(self) -> AnyArray: ... | ||
def get(self) -> _Value: ... | ||
|
||
def __getattr__(name: str) -> Incomplete: ... |