Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
gpu-base-image-build
Commits
8885584b
Commit
8885584b
authored
Sep 18, 2024
by
chenpangpang
Browse files
feat: 初始提交
parent
7e6e7f2b
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
script/1_base_test.sh
script/1_base_test.sh
+11
-0
No files found.
script/1_base_test.sh
0 → 100644
View file @
8885584b
#!/bin/bash
docker run
--rm
--platform
=
linux/amd64
--gpus
all
$1
python
-c
\
'import torch; \
print("torch version: ", torch.__version__); \
print("torch cuda available: ", torch.cuda.is_available()); \
import torchvision; \
print("torchvision version: ", torchvision.__version__); \
import torchaudio; \
print("torchaudio version: ", torchaudio.__version__);
'
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment