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
infinicore
Commits
2e624a8e
Unverified
Commit
2e624a8e
authored
May 21, 2025
by
PanZezhong1725
Committed by
GitHub
May 21, 2025
Browse files
Merge pull request #224 from InfiniTensor/issue/191/fix
issue/191/fix 修正random sample workspace返回result处理方式
parents
df1c6b5d
4a180009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
+6
-4
No files found.
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
View file @
2e624a8e
...
@@ -26,10 +26,12 @@ infiniStatus_t Descriptor::create(
...
@@ -26,10 +26,12 @@ infiniStatus_t Descriptor::create(
auto
info
=
result
.
take
();
auto
info
=
result
.
take
();
size_t
workspace_size
;
size_t
workspace_size
;
#define CASE_P(CASE, Tidx, Tval) \
#define CASE_P(CASE, Tidx, Tval) \
case CASE: \
case CASE: { \
workspace_size = calculateWorkspace<Tidx, Tval>(info.n); \
auto workspace_result = calculateWorkspace<Tidx, Tval>(info.n); \
break
CHECK_RESULT(workspace_result); \
workspace_size = workspace_result.take(); \
} break
#define CASE_I(CASE, Tidx) \
#define CASE_I(CASE, Tidx) \
case CASE: \
case CASE: \
...
...
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