Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2db0b6e

Browse files
authored
Fix stubtest for TensorFlow with latest keras release (#11838)
1 parent 147aa24 commit 2db0b6e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

stubs/tensorflow/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ partial_stub = true
99

1010
[tool.stubtest]
1111
ignore_missing_stub = true
12-
stubtest_requirements = ["keras>=3.3.2"]
12+
stubtest_requirements = ["keras>=3.3.3"]

stubs/tensorflow/tensorflow/keras/losses.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ _ReductionValues: TypeAlias = Literal["auto", "none", "sum", "sum_over_batch_siz
142142

143143
def categorical_hinge(y_true: TensorCompatible, y_pred: TensorCompatible) -> Tensor: ...
144144
def huber(y_true: TensorCompatible, y_pred: TensorCompatible, delta: float = 1.0) -> Tensor: ...
145-
def log_cosh(y_true: TensorCompatible, y_pred: TensorCompatible) -> Tensor: ...
146145
def deserialize(name: str | dict[str, Any], custom_objects: dict[str, Any] | None = None) -> Loss: ...
147146
def serialize(loss: KerasSerializable) -> dict[str, Any]: ...
148147

0 commit comments

Comments
 (0)