Skip to content

Commit 559abe3

Browse files
committed
fix: comment out properties not present at runtime.
1 parent 751246c commit 559abe3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stubs/tensorflow/tensorflow/keras/models.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Model(Layer[_InputT, _OutputT], tf.Module):
3131
run_eagerly: bool | None = None,
3232
steps_per_execution: int | Literal["auto"] | None = None,
3333
jit_compile: bool | None = None,
34+
*,
3435
pss_evaluation_shards: int | Literal["auto"] = 0,
3536
**kwargs: Any,
3637
) -> None: ...
@@ -42,10 +43,10 @@ class Model(Layer[_InputT, _OutputT], tf.Module):
4243
def distribute_strategy(self) -> Incomplete: ... # tf.distribute.Strategy
4344
@property
4445
def run_eagerly(self) -> bool: ...
45-
@property
46-
def autotune_steps_per_execution(self) -> Incomplete: ...
47-
@property
48-
def steps_per_execution(self) -> int: ... # Requires a compiled model.
46+
# @property
47+
# def autotune_steps_per_execution(self) -> Incomplete: ... # not present at runtime
48+
# @property
49+
# def steps_per_execution(self) -> int: ... # Requires a compiled model. # not present at runtime
4950
@property
5051
def jit_compile(self) -> bool: ...
5152
@property

0 commit comments

Comments
 (0)