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
vision
Commits
84888b93
Unverified
Commit
84888b93
authored
Aug 19, 2021
by
Philip Meier
Committed by
GitHub
Aug 19, 2021
Browse files
remove dependency for dtype getters (#4291)
parent
759c5b6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/common_utils.py
test/common_utils.py
+2
-2
No files found.
test/common_utils.py
View file @
84888b93
...
@@ -102,11 +102,11 @@ def cycle_over(objs):
...
@@ -102,11 +102,11 @@ def cycle_over(objs):
def
int_dtypes
():
def
int_dtypes
():
return
torch
.
testing
.
integral_types
(
)
return
(
torch
.
uint8
,
torch
.
int8
,
torch
.
int16
,
torch
.
int32
,
torch
.
int64
)
def
float_dtypes
():
def
float_dtypes
():
return
torch
.
testing
.
floating_types
(
)
return
(
torch
.
float32
,
torch
.
float64
)
@
contextlib
.
contextmanager
@
contextlib
.
contextmanager
...
...
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