Skip to content

Commit

Permalink
Fix a small inconsistency on the SDK debugging page (#3247)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #3247

so that the code is consistent with the text description

Reviewed By: dbort

Differential Revision: D56481274

fbshipit-source-id: f303b966ebf3e07b510ef825c7bc09eaecd89554
  • Loading branch information
Olivia-liu authored and facebook-github-bot committed Apr 23, 2024
1 parent 783e932 commit ca8e589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/sdk-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ For a real example reflecting the steps below, please refer to [sdk_example_runn
Span<uint8_t> buffer((uint8_t*)debug_buffer, debug_buffer_size);
etdump_gen.set_debug_buffer(buffer);
etdump_gen.set_event_tracer_debug_level(
EventTracerDebugLogLevel::kIntermediateOutputs);
EventTracerDebugLogLevel::kProgramOutputs);
```

- Intermediate outputs of executed (non-delegated) operations (will include the program level outputs too)
```C++
Span<uint8_t> buffer((uint8_t*)debug_buffer, debug_buffer_size);
etdump_gen.set_debug_buffer(buffer);
etdump_gen.set_event_tracer_debug_level(
EventTracerDebugLogLevel::kProgramOutputs);
EventTracerDebugLogLevel::kIntermediateOutputs);
```
3. Build the runtime with the pre-processor flag that enables tracking of debug events. Instructions are in the [ETDump documentation](./sdk-etdump.md).
4. Run your model and dump out the ETDump buffer as described [here](./sdk-etdump.md). (Do so similarly for the debug buffer if configured above)
Expand Down

0 comments on commit ca8e589

Please sign in to comment.