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

Commit c7179b2

Browse files
bgoguldan-zheng
andauthored
Use Dictionary.sorted(by:)
Co-Authored-By: Dan Zheng <[email protected]>
1 parent 9ebc457 commit c7179b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TensorFlow/Core/LazyTensorOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ extension LazyTensor: CustomStringConvertible {
682682

683683
extension LazyTensorOperation: CustomStringConvertible {
684684
public var description: String {
685-
let attrsDesc = attrs.keys.sorted(by: <).map { "\($0): \(attrs[$0]!)" }
685+
let attrsDesc = attrs.sorted(by: { $0.key < $1.key }).map { "\($0): \($1)" }
686686
let inputsDesc = inputs.map { (input: Input) -> String in
687687
switch input {
688688
case Input.single(let lazyTensor):

0 commit comments

Comments
 (0)