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
079d7afe
Commit
079d7afe
authored
Nov 10, 2023
by
Ruslan Svirschevski
Browse files
extra check for qs_dict['shape'] is None
parent
45864262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/functional.py
bitsandbytes/functional.py
+1
-1
No files found.
bitsandbytes/functional.py
View file @
079d7afe
...
@@ -642,7 +642,7 @@ class QuantState:
...
@@ -642,7 +642,7 @@ class QuantState:
blocksize
=
qs_dict
[
'blocksize'
],
blocksize
=
qs_dict
[
'blocksize'
],
code
=
qs_dict
[
'quant_map'
].
to
(
device
),
code
=
qs_dict
[
'quant_map'
].
to
(
device
),
dtype
=
getattr
(
torch
,
qs_dict
[
'dtype'
]),
dtype
=
getattr
(
torch
,
qs_dict
[
'dtype'
]),
shape
=
torch
.
Size
(
qs_dict
[
'shape'
]),
shape
=
torch
.
Size
(
qs_dict
[
'shape'
])
if
qs_dict
[
'shape'
]
is
not
None
else
None
,
offset
=
offset
,
offset
=
offset
,
state2
=
state2
,
state2
=
state2
,
)
)
...
...
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