This repository was archived by the owner on Jul 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Sources/TensorFlow/Operators Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ public extension Tensor {
213
213
func squeezingShape( at axes: [ Int ] ) -> Tensor {
214
214
return Raw . squeeze ( self , squeezeDims: axes. map ( Int32 . init) )
215
215
}
216
-
217
216
}
218
217
219
218
internal extension Tensor where Scalar: TensorFlowFloatingPoint {
@@ -577,12 +576,12 @@ public extension Tensor {
577
576
}
578
577
579
578
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
+ }
586
585
}
587
586
588
587
//===------------------------------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments