File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ namespace torch::executor {
36
36
37
37
Module::Module (
38
38
const std::string& file_path,
39
- const Module::MlockConfig mlock_config)
39
+ const Module::MlockConfig mlock_config,
40
+ std::unique_ptr<EventTracer> event_tracer)
40
41
: file_path_(file_path),
41
42
mlock_config_ (mlock_config),
42
- memory_allocator_(std::make_unique<util::MallocMemoryAllocator>()) {
43
+ memory_allocator_(std::make_unique<util::MallocMemoryAllocator>()),
44
+ event_tracer_(std::move(event_tracer)) {
43
45
runtime_init ();
44
46
}
45
47
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ class Module final {
44
44
*/
45
45
explicit Module (
46
46
const std::string& file_path,
47
- const MlockConfig mlock_config = MlockConfig::UseMlock);
47
+ const MlockConfig mlock_config = MlockConfig::UseMlock,
48
+ std::unique_ptr<EventTracer> event_tracer = nullptr );
48
49
49
50
/* *
50
51
* Constructs an instance with the provided data loader and memory allocator.
You can’t perform that action at this time.
0 commit comments