clamp

private fun clamp(value: Double, min: Double = 0.0, max: Double = 1.0): Double(source)

Executes the clamp step in the SDAI ONNX local diffusion feature layer.

Return

Result produced by clamp.

Author

Dmitriy Moroz

Parameters

value

value value consumed by the API.

min

min value consumed by the API.

max

max value consumed by the API.