Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 8cd53a5

Browse files
committed
Adding the @differentiable comment
1 parent 13f8d56 commit 8cd53a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TensorFlow/Operators/Basic.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ public extension Tensor {
578578
public extension Tensor where Scalar: Numeric {
579579
/// Returns a tensor by clipping scalars to a specified minimum and maximum.
580580
// FIXME: Define a derivative function.
581+
// @differentiable(wrt: self where Scalar: TensorFlowFloatingPoint)
581582
@inlinable
582583
func clipped(min: Tensor, max: Tensor) -> Tensor {
583584
return Raw.clipByValue(t: self, clipValueMin: min, clipValueMax: max)

0 commit comments

Comments
 (0)