We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0581e43 commit cf3c870Copy full SHA for cf3c870
support/environment.go
@@ -44,6 +44,9 @@ const (
44
45
// Hostname of the Kubernetes cluster
46
ClusterHostname = "CLUSTER_HOSTNAME"
47
+
48
+ // URL for downloading MNIST dataset
49
+ mnistDatasetURL = "MNIST_DATASET_URL"
50
)
51
52
type ClusterType string
@@ -110,6 +113,10 @@ func GetClusterHostname(t Test) string {
110
113
return hostname
111
114
}
112
115
116
+func GetMnistDatasetURL() string {
117
+ return lookupEnvOrDefault(mnistDatasetURL, "http://yann.lecun.com/exdb/mnist/")
118
+}
119
120
func lookupEnvOrDefault(key, value string) string {
121
if v, ok := os.LookupEnv(key); ok {
122
return v
0 commit comments