Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tools/generate_compatibility_matrices/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,25 @@ type pypiResponse struct {
} `json:"info"`
}

func fetchTorchVersions() ([]config.TorchCompatibility, error) {
compats := []config.TorchCompatibility{}
linkRe := regexp.MustCompile(``)

url := "https://download.pytorch.org/whl/torch_stable.html"
resp, err := soup.Get(url)
if err != nil {
return nil, fmt.Errorf("Failed to download %s: %w", url, err)
}
doc := soup.HTMLParse(resp)
links := doc.FindAll("a")
for _, link := range links {
href := link.Attrs()["href"]

}

return compats, nil
}

// Need to get latest versions because PyTorch doesn't specify versions for latest
func fetchDefaultVersions() (map[string]string, error) {
fmt.Println("Fetching default versions...")
Expand Down