Skip to main content

ClikaRT::nn::ClampOptions

struct

Header: ClikaRT/nn/generated/elementwise.h

Settings of Clamp: chain the setters, or assign the fields.

Member functions​

ClampOptions()​

ClampOptions() =default

Declared in ClikaRT/nn/generated/elementwise.h, line 388

ClampOptions(optional<ScalarOrTensor>, optional<ScalarOrTensor>)​

explicit ClampOptions(
    std::optional<ScalarOrTensor> min_val,
    std::optional<ScalarOrTensor> max_val = std::nullopt
)

ClampOptions(min_val, max_val): the positional form.

Declared in ClikaRT/nn/generated/elementwise.h, line 390

min_val(optional<ScalarOrTensor>)​

ClampOptions& min_val(std::optional<ScalarOrTensor> v)

Sets min_val, the lower bound: a scalar or a tensor; unset leaves the side open.

Declared in ClikaRT/nn/generated/elementwise.h, line 396

min_val()​

const std::optional<ScalarOrTensor>& min_val() const

Reads min_val.

Declared in ClikaRT/nn/generated/elementwise.h, line 401

max_val(optional<ScalarOrTensor>)​

ClampOptions& max_val(std::optional<ScalarOrTensor> v)

Sets max_val, the upper bound: a scalar or a tensor; unset leaves the side open.

Declared in ClikaRT/nn/generated/elementwise.h, line 408

max_val()​

const std::optional<ScalarOrTensor>& max_val() const

Reads max_val.

Declared in ClikaRT/nn/generated/elementwise.h, line 413

Data members​

min_val_​

std::optional<ScalarOrTensor> min_val_ = std::nullopt

The lower bound: a scalar or a tensor; unset leaves the side open. Default std::nullopt.

Declared in ClikaRT/nn/generated/elementwise.h, line 404

max_val_​

std::optional<ScalarOrTensor> max_val_ = std::nullopt

The upper bound: a scalar or a tensor; unset leaves the side open. Default std::nullopt.

Declared in ClikaRT/nn/generated/elementwise.h, line 416