|
blace.ai
|
#include <blace_index.h>
Public Member Functions | |
| EXPORT_OR_IMPORT | Slice (std::optional< int64_t > start_index=std::nullopt, std::optional< int64_t > stop_index=std::nullopt, std::optional< int64_t > step_index=std::nullopt) |
| int64_t | start () const |
| int64_t | stop () const |
| int64_t | step () const |
Struct to describe a subset of a tensors dimension.
| EXPORT_OR_IMPORT blace::ml_core::Slice::Slice | ( | std::optional< int64_t > | start_index = std::nullopt, |
| std::optional< int64_t > | stop_index = std::nullopt, |
||
| std::optional< int64_t > | step_index = std::nullopt |
||
| ) |
Construct a slice to select values along a dimension. Slice() will select all values. Slice(3,10) will select values in the range 3 to 10 (exclusive).
| start_index | |
| stop_index | |
| step_index |
|
inline |
Return the start value.
|
inline |
Return the step value.
|
inline |
Return the end value.