Skip to content

Commit

Permalink
Remove unused latestTF function
Browse files Browse the repository at this point in the history
Signed-off-by: Yorick van Pelt <[email protected]>
  • Loading branch information
yorickvP committed Nov 28, 2023
1 parent 3d50544 commit 7aff670
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pkg/config/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,26 +207,6 @@ func latestCuDNNForCUDA(cuda string) (string, error) {
return cuDNNs[0], nil
}

func latestTF() TFCompatibility {
var latest *TFCompatibility
for _, compat := range TFCompatibilityMatrix {
compat := compat
if latest == nil {
latest = &compat
} else {
greater, err := versionGreater(compat.TF, latest.TF)
if err != nil {
// should never happen
panic(fmt.Sprintf("Invalid tensorflow version: %s", err))
}
if greater {
latest = &compat
}
}
}
return *latest
}

func versionGreater(a string, b string) (bool, error) {
// TODO(andreas): use library
aVer, err := version.NewVersion(a)
Expand Down

0 comments on commit 7aff670

Please sign in to comment.