mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Code review feedback
This commit is contained in:
parent
86e30a2db6
commit
45966d878a
1 changed files with 3 additions and 3 deletions
|
|
@ -55,10 +55,10 @@ Status IsAllFiniteOp<TSrc>::ComputeInternal(OpKernelContext* context) const {
|
|||
// Get Input tensor count.
|
||||
const auto total_tensor_count = context->InputCount();
|
||||
|
||||
// Initialize the output to true. GPU kernel will set it to false
|
||||
// if any value in any tensor is non-finite.
|
||||
// Initialize the output to true. GPU kernel will set it
|
||||
// to false if any value in any tensor is non-finite.
|
||||
Tensor& output = *context->Output(0, {});
|
||||
auto output_data = reinterpret_cast<ToCudaType<bool>::MappedType*>(output.template MutableData<bool>());
|
||||
auto* output_data = reinterpret_cast<ToCudaType<bool>::MappedType*>(output.template MutableData<bool>());
|
||||
CUDA_RETURN_IF_ERROR(cudaMemsetAsync(output_data, int(true), sizeof(bool)));
|
||||
|
||||
std::vector<std::vector<void*>> grouped_tensor_pointers(total_tensor_count);
|
||||
|
|
|
|||
Loading…
Reference in a new issue