blace.ai
Loading...
Searching...
No Matches
blace::ops::IndexOp Class Reference

#include <public_ops.h>

Inheritance diagram for blace::ops::IndexOp:

Public Member Functions

 IndexOp (blace::ops::OpP input, ml_core::BlaceIndexVec indices, std::optional< ml_core::ColorFormatEnum > color_format=std::nullopt)
 

Detailed Description

Operator to slice an tensor.

Constructor & Destructor Documentation

◆ IndexOp()

blace::ops::IndexOp::IndexOp ( blace::ops::OpP  input,
ml_core::BlaceIndexVec  indices,
std::optional< ml_core::ColorFormatEnum color_format = std::nullopt 
)

Constructs a slicing operator.

Parameters
inputThe input node.
indicesA vector of indices to use for slicing.
color_formatThe resulting color format, optional.