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

Commit 1c94f92

Browse files
committed
some more review changes
1 parent e77c152 commit 1c94f92

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Sources/TensorFlow/Operators/Basic.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ public extension Tensor {
213213
func squeezingShape(at axes: [Int]) -> Tensor {
214214
return Raw.squeeze(self, squeezeDims: axes.map(Int32.init))
215215
}
216-
217216
}
218217

219218
internal extension Tensor where Scalar: TensorFlowFloatingPoint {
@@ -577,12 +576,12 @@ public extension Tensor {
577576
}
578577

579578
public extension Tensor where Scalar: Numeric {
580-
/// Returns a `Tensor` by clipping tensor values to a specified min and max.
581-
@inlinable
582-
@differentiable(wrt: self where Scalar: TensorFlowFloatingPoint)
583-
func clipped(min minimum: Tensor, max maximum: Tensor) -> Tensor{
584-
return Raw.clipByValue(t: self, clipValueMin: minimum, clipValueMax: maximum)
585-
}
579+
/// Returns a `Tensor` by clipping tensor values to a specified min and max.
580+
@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)
584+
}
586585
}
587586

588587
//===------------------------------------------------------------------------------------------===//

0 commit comments

Comments
 (0)