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

Commit 6a2e67e

Browse files
authored
TensorFlow: migrate to CRT module on Windows (#1118)
The `MSVCRT` module was replaced with the `CRT` module as the `visualc` module was removed.
1 parent bd3f264 commit 6a2e67e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/TensorFlow/Core/Utilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import CTensorFlow
1717
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1818
import Darwin
1919
#elseif os(Windows)
20-
import MSVCRT
20+
import CRT
2121
#else
2222
import Glibc
2323
#endif

Sources/TensorFlow/Layers/Dropout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import _Differentiation
1616

1717
#if os(Windows)
18-
import func MSVCRT.sqrt
18+
import func CRT.sqrt
1919
#endif
2020

2121
extension Tensor where Scalar: TensorFlowFloatingPoint {

0 commit comments

Comments
 (0)