public Tensor Clamp(Tensor result, Tensor src, float min, float max) { Tensor writeTarget = TensorResultBuilder.GetWriteTarget(result, src, false, src.Sizes); TensorApplyCPU.Clamp(writeTarget, src, min, max); return(writeTarget); //return NativeWrapper.InvokeNullableResultElementwise(clamp_func, result, src, min, max); }