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

Commit 3739afa

Browse files
committed
build tensor error
1 parent 7ffcf87 commit 3739afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TensorFlow/Operators/Basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public extension Tensor {
217217
/// Returns a `Tensor` by clipping tensor values to a specified min and max.
218218
@inlinable
219219
@differentiable(wrt: self where Scalar: TensorFlowFloatingPoint)
220-
func clipped(min minimum: Tensor<Int32>, max maximum: Tensor<Int32>) -> Tensor{
220+
func clipped<T>(min minimum: Tensor<T>, max maximum: Tensor<T>) -> Tensor{
221221
return Raw.clipByValue(t: self, clipValueMin: minimum, clipValueMax: maximum)
222222
}
223223
}

0 commit comments

Comments
 (0)