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
jerrrrry
infinilm
Commits
726f444f
Commit
726f444f
authored
Jul 21, 2025
by
wooway777
Browse files
issue/21 - added zero workspace handling
parent
d7965f91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/models/inference_context.cpp
src/models/inference_context.cpp
+1
-1
No files found.
src/models/inference_context.cpp
View file @
726f444f
...
...
@@ -6,7 +6,7 @@ InferenceContext::InferenceContext(DeviceResource *rsrc, CacheManager *cache_man
:
rsrc
(
rsrc
),
cache_manager
(
cache_manager
),
stream
(
stream
)
{}
void
InferenceContext
::
ensure_workspace
(
size_t
required_size
)
{
if
(
required_size
>
current_workspace_size
)
{
if
(
required_size
>
current_workspace_size
||
!
workspace_storage
)
{
workspace_storage
=
Storage
::
createFromPool
(
required_size
,
rsrc
->
memory_pool
);
current_workspace_size
=
required_size
;
}
...
...
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