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

Commit 71db9e5

Browse files
committed
Deprecate old version.
1 parent ef6f22f commit 71db9e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/TensorFlow/Operators/LinearAlgebra.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public extension Tensor where Scalar: TensorFlowNumeric {
5656
_Raw.matrixDiag(diagonal: self)
5757
}
5858

59+
@available(*, deprecated, renamed: "bandPart(subdiagonalCount:superdiagonalCount:)")
60+
@differentiable(wrt: self where Scalar: TensorFlowFloatingPoint)
61+
func bandPart(_ subdiagonalCount: Int, _ superdiagonalCount: Int) -> Tensor {
62+
return bandPart(subdiagonalCount: subdiagonalCount, superdiagonalCount: superdiagonalCount)
63+
}
64+
5965
/// Returns a copy of a innermost tensor defined by a central band boundaries.
6066
/// The output is a tensor of the same shape as the instance `[..., :, :]`.
6167
///

0 commit comments

Comments
 (0)