Skip to content

ggml_clamp should be renamed ggml_clamp_inplace to prevent mistakes. #1416

@Codes4Fun

Description

@Codes4Fun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions