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
OpenDAS
deepspeed
Commits
d6846203
"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "01abfc873659e29a8d002f20782fa5b5e6d03f9c"
Unverified
Commit
d6846203
authored
Feb 04, 2020
by
Jeff Rasley
Committed by
GitHub
Feb 04, 2020
Browse files
add version check test (#9)
parent
52c5a936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/unit/test_config.py
tests/unit/test_config.py
+6
-0
No files found.
tests/unit/test_config.py
View file @
d6846203
...
@@ -7,3 +7,9 @@ import deepspeed
...
@@ -7,3 +7,9 @@ import deepspeed
def
test_cuda
():
def
test_cuda
():
assert
(
torch
.
cuda
.
is_available
())
assert
(
torch
.
cuda
.
is_available
())
def
test_check_version
():
assert
hasattr
(
deepspeed
,
"__git_hash__"
)
assert
hasattr
(
deepspeed
,
"__git_branch__"
)
assert
hasattr
(
deepspeed
,
"__version__"
)
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