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
torch-cluster
Commits
d6de3071
Commit
d6de3071
authored
May 17, 2018
by
rusty1s
Browse files
free bernoulli tensor
parent
642d548f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
aten/THC/THCColor.cuh
aten/THC/THCColor.cuh
+2
-0
No files found.
aten/THC/THCColor.cuh
View file @
d6de3071
...
@@ -30,7 +30,9 @@ int THCudaLongTensor_color(THCState *state, THCudaLongTensor *self) {
...
@@ -30,7 +30,9 @@ int THCudaLongTensor_color(THCState *state, THCudaLongTensor *self) {
KERNEL_RUN
(
colorKernel
,
nNodes
,
selfData
,
bernoulliData
);
KERNEL_RUN
(
colorKernel
,
nNodes
,
selfData
,
bernoulliData
);
THCudaByteTensor_free
(
state
,
bernoulli
);
int
done
;
cudaMemcpyFromSymbol
(
&
done
,
d_done
,
sizeof
(
done
),
0
,
cudaMemcpyDeviceToHost
);
int
done
;
cudaMemcpyFromSymbol
(
&
done
,
d_done
,
sizeof
(
done
),
0
,
cudaMemcpyDeviceToHost
);
return
done
;
return
done
;
}
}
...
...
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