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 +3
-0
lines changed
Sources/TensorFlow/Operators Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -153,13 +153,15 @@ extension Tensor: ElementaryFunctions where Scalar: TensorFlowFloatingPoint {
153
153
/// For real types, if `x` is negative the result is NaN, even if `y` has
154
154
/// an integral value. For complex types, there is a branch cut on the
155
155
/// negative real axis.
156
+ @differentiable
156
157
public static func pow( _ x: Self , _ y: Self ) -> Self {
157
158
TensorFlow . pow ( x, y)
158
159
}
159
160
160
161
/// `x` raised to the `n`th power.
161
162
///
162
163
/// The product of `n` copies of `x`.
164
+ @differentiable
163
165
public static func pow( _ x: Self , _ n: Int ) -> Self {
164
166
TensorFlow . pow ( x, n)
165
167
}
@@ -168,6 +170,7 @@ extension Tensor: ElementaryFunctions where Scalar: TensorFlowFloatingPoint {
168
170
///
169
171
/// For real types, if `x` is negative and `n` is even, the result is NaN.
170
172
/// For complex types, there is a branch cut along the negative real axis.
173
+ @differentiable
171
174
public static func root( _ x: Self , _ n: Int ) -> Self {
172
175
TensorFlow . root ( x, n)
173
176
}
You can’t perform that action at this time.
0 commit comments