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

Commit 48caccc

Browse files
authored
Revert "Restructured the operators source files and added support for multiple new operators. (#70)" (#108)
This reverts commit d2c78f4.
1 parent aa20df2 commit 48caccc

17 files changed

+104
-4222
lines changed

Sources/DeepLearning/DifferentialOperators.swift

Lines changed: 0 additions & 178 deletions
This file was deleted.

Sources/DeepLearning/Helpers.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@
1313
// limitations under the License.
1414

1515
#if !COMPILING_TENSORFLOW_MODULE
16-
@_exported import TensorFlow
16+
import TensorFlow
1717
#endif
1818

19-
/// Returns a tensor with the same shape and scalars as the specified tensor.
20-
@inlinable
21-
@differentiable
22-
public func identity<Scalar>(_ x: Tensor<Scalar>) -> Tensor<Scalar> {
23-
return x
24-
}
25-
2619
// `pow` is defined in Darwin/Glibc on `Float` and `Double`, but there doesn't exist a generic
2720
// version for `FloatingPoint`.
2821
// This is a manual definition.
29-
@inlinable
30-
func pow<T: BinaryFloatingPoint>(_ x: T, _ y: T) -> T {
22+
func pow<T : BinaryFloatingPoint>(_ x: T, _ y: T) -> T {
3123
return T(pow(Double(x), Double(y)))
3224
}

0 commit comments

Comments
 (0)