ggml_clamp is actually an inplace operator but is not named the same as the other inplace operators, which can be misleading to developers who think the clamp operator will not affect the original tensor. I ran into the issue a while back when trying to create a mask.