Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions | Data Fields | Static Public Attributes
torch::autograd::profiler::RangeEventList Struct Reference

Public Types

using block_type = std::vector< Event >

Public Member Functions

void allocBlock ()
template<typename... Args>
void record (Args &&...args)
std::vector< Eventconsolidate ()

Data Fields

std::forward_list< block_type > blocks

Static Public Attributes

static constexpr size_t MB = 1024 * 1024
static constexpr size_t event_block_size = 16 * MB
static constexpr size_t num_block_elements

Detailed Description

Definition at line 151 of file profiler.h.

Field Documentation

constexpr size_t torch::autograd::profiler::RangeEventList::num_block_elements
Initial value:
event_block_size / ceilToMultiple(sizeof(Event), alignof(Event))

Definition at line 154 of file profiler.h.

The documentation for this struct was generated from the following file: