Skip to content

Commit

Permalink
Add PythonState
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 31, 2024
1 parent 080b155 commit 5532157
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/tensorflow/tensorflow/train/experimental.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import abc
from _typeshed import Incomplete
from typing_extensions import Self

from tensorflow.python.trackable.base import Trackable

class PythonState(Trackable, metaclass=abc.ABCMeta):
@abc.abstractmethod
def serialize(self) -> str: ...
@abc.abstractmethod
def deserialize(self, string_value: str) -> Self: ...

def __getattr__(name: str) -> Incomplete: ...

0 comments on commit 5532157

Please sign in to comment.