Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 8861ab7

Browse files
jzhoulonyisitu
andauthored
Update rfcs/20210513-pluggable-profiler-for-tensorflow.md
Co-authored-by: Situ Yi <[email protected]>
1 parent cb61d40 commit 8861ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfcs/20210513-pluggable-profiler-for-tensorflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void profiler_collect_data_xspace(const TP_Profiler* profiler, uint8_t* buffer,
362362
Define `TF_InitProfiler` that TensorFlow will call when registering the profiler plugin:
363363
```c++
364364
void TF_InitProfiler(TF_ProfilerRegistrationParams* params, TF_Status* status) {
365-
params->struct_size = TF_PROFILER_REGISTRATION_PARAMS_STRUCT_SIZE;
365+
*params = { TF_PROFILER_REGISTRATION_PARAMS_STRUCT_SIZE };
366366
params->profiler->struct_size = TP_PROFILER_STRUCT_SIZE;
367367
params->profiler_fns->struct_size = TP_PROFILER_FNS_STRUCT_SIZE;
368368

0 commit comments

Comments
 (0)