|
using | OpDef = ReducerDef |
|
using | Reducer = typename ReducerDef::template Reducer< T, Context > |
|
using | ReducerGradient = typename ReducerDef::template ReducerGradient< T, Context > |
|
using | ForwardOp = AbstractUnsortedSegmentOp< T, SIndex, Context, typename ReducerDef::template Reducer< T, Context >, false > |
|
using | BackwardOp = AbstractUnsortedSegmentGradientOp< T, SIndex, Context, ReducerGradient > |
|
using | GetGradient = SegmentOpGetGradient< ForwardOp, ReducerDef, ReducerGradient, false, false > |
|
|
static void | PopulateSchema (OpSchema &schema) |
|
|
static constexpr const char * | basename = "UnsortedSegment" |
|
static constexpr const char * | doc |
|
template<typename T, typename SIndex, typename Context, typename ReducerDef>
struct caffe2::AbstractUnsortedSegmentDef< T, SIndex, Context, ReducerDef >
Definition at line 1234 of file segment_reduction_op.h.
template<typename T , typename SIndex , typename Context , typename ReducerDef >
Initial value:= R"DOC(
Applies '{op}' to each segment of input tensor. Segments ids can appear in
arbitrary order (unlike in SortedSegment{op}).
SEGMENT_IDS is a vector that maps each of the first dimension slices of the
DATA to a particular group (segment). Values belonging to the same segment are
aggregated together.
If `num_segments` argument is passed it would be used as a first dimension for
the output. Otherwise, it'd be dynamically calculated from as the max value of
SEGMENT_IDS plus one. Other output dimensions are inherited from the input
tensor.
{op_doc}
)DOC"
Definition at line 1237 of file segment_reduction_op.h.
The documentation for this struct was generated from the following file: