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

Commit a4a4c66

Browse files
committed
add missing function
1 parent a6cc9d2 commit a4a4c66

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,14 @@ Because `device_type` here is an enum, we cannot differentiate between multiple
262262
~PluggableProfilerFactory() {
263263
destroy_profiler_(&profiler_);
264264
destroy_profiler_fns_(&profiler_fns_);
265-
266-
private:
265+
266+
std::unique_ptr<tensorflow::profiler::ProfilerInterface> CreatePluggableProfiler(
267+
const ProfileOptions& options) {
268+
return PluggableProfiler::CreatePluggableProfiler(options, &profiler_,
269+
&profiler_fns_);
270+
}
271+
272+
private:
267273
TP_Profiler profiler_{TP_PROFILER_STRUCT_SIZE};
268274
void (*destroy_profiler_)(TP_Profiler*);
269275
TP_ProfilerFns profiler_fns_{TP_PROFILER_FNS_STRUCT_SIZE};

0 commit comments

Comments
 (0)