File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ RUN if [ "${cloud_build}" = true ]; then github_branch="${release_version}" && \
46
46
cd / && \
47
47
git clone -b "${github_branch}" --recursive https://github.com/pytorch-tpu/examples tpu-examples; fi
48
48
49
- # RUN cd /pytorch && bash xla/scripts/build_torch_wheels.sh ${python_version} ${release_version}
49
+ RUN cd /pytorch && bash xla/scripts/build_torch_wheels.sh ${python_version} ${release_version}
50
50
51
51
# Use conda environment on startup or when running scripts.
52
- # RUN echo "conda activate pytorch" >> ~/.bashrc
53
- # RUN echo "export TF_CPP_LOG_THREAD_ID=1" >> ~/.bashrc
54
- # ENV PATH /root/anaconda3/envs/pytorch/bin/:/root/bin:$PATH
52
+ RUN echo "conda activate pytorch" >> ~/.bashrc
53
+ RUN echo "export TF_CPP_LOG_THREAD_ID=1" >> ~/.bashrc
54
+ ENV PATH /root/anaconda3/envs/pytorch/bin/:/root/bin:$PATH
55
55
56
56
# Define entrypoint and cmd
57
57
COPY docker/docker-entrypoint.sh /usr/local/bin
Original file line number Diff line number Diff line change 1
- import args_parse
1
+ import test . args_parse as args_parse
2
2
3
3
SUPPORTED_MODELS = [
4
4
"alexnet" ,
56
56
57
57
import os
58
58
59
- import schedulers
59
+ import test . schedulers as schedulers
60
60
import numpy as np
61
61
import torch
62
62
import torch .nn as nn
67
67
import torch_xla .utils .utils as xu
68
68
import torch_xla .test .test_utils as test_utils
69
69
import torch_xla .core .xla_model as xm
70
- from classification_benchmark_constants import DEFAULT_KWARGS , MODEL_SPECIFIC_DEFAULTS
70
+ from test . classification_benchmark_constants import DEFAULT_KWARGS , MODEL_SPECIFIC_DEFAULTS
71
71
from torch .cuda .amp import GradScaler , autocast
72
72
73
73
default_value_dict = MODEL_SPECIFIC_DEFAULTS .get (FLAGS .model , DEFAULT_KWARGS )
You can’t perform that action at this time.
0 commit comments