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
bitsandbytes
Commits
0bf71989
Unverified
Commit
0bf71989
authored
Feb 21, 2024
by
Titus
Committed by
GitHub
Feb 21, 2024
Browse files
tests/helpers.py: fix py38 vers incompatibility from other PR
parent
a84b660d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/helpers.py
tests/helpers.py
+2
-2
No files found.
tests/helpers.py
View file @
0bf71989
from
itertools
import
product
from
itertools
import
product
import
random
import
random
from
typing
import
Any
from
typing
import
Any
,
List
import
torch
import
torch
test_dims_rng
=
random
.
Random
(
42
)
test_dims_rng
=
random
.
Random
(
42
)
def
get_test_dims
(
min
:
int
,
max
:
int
,
*
,
n
:
int
)
->
l
ist
[
int
]:
def
get_test_dims
(
min
:
int
,
max
:
int
,
*
,
n
:
int
)
->
L
ist
[
int
]:
return
[
test_dims_rng
.
randint
(
min
,
max
)
for
_
in
range
(
n
)]
return
[
test_dims_rng
.
randint
(
min
,
max
)
for
_
in
range
(
n
)]
...
...
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