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

Commit 13f8d56

Browse files
committed
final reviews and comments for adding vjpClipped
1 parent 1c94f92 commit 13f8d56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/TensorFlow/Operators/Basic.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,11 @@ public extension Tensor {
576576
}
577577

578578
public extension Tensor where Scalar: Numeric {
579-
/// Returns a `Tensor` by clipping tensor values to a specified min and max.
579+
/// Returns a tensor by clipping scalars to a specified minimum and maximum.
580+
// FIXME: Define a derivative function.
580581
@inlinable
581-
@differentiable(wrt: self where Scalar: TensorFlowFloatingPoint)
582-
func clipped(min minimum: Tensor, max maximum: Tensor) -> Tensor{
583-
return Raw.clipByValue(t: self, clipValueMin: minimum, clipValueMax: maximum)
582+
func clipped(min: Tensor, max: Tensor) -> Tensor {
583+
return Raw.clipByValue(t: self, clipValueMin: min, clipValueMax: max)
584584
}
585585
}
586586

0 commit comments

Comments
 (0)