Skip to content

Commit 1b1e2c6

Browse files
committed
Fix up atomic initialization
1 parent 170da74 commit 1b1e2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtorch.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ ModelInstanceState::ProcessRequests(
13051305
}
13061306

13071307
uint64_t compute_end_ns = 0;
1308-
std::atomic<uint64_t> compute_output_start = 0;
1308+
std::atomic<uint64_t> compute_output_start{0};
13091309

13101310
if ((Kind() == TRITONSERVER_INSTANCEGROUPKIND_MODEL) && (device_cnt_ > 0)) {
13111311
#ifdef TRITON_ENABLE_GPU

0 commit comments

Comments
 (0)