MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / sam3_normalize_ne4

Function sam3_normalize_ne4

sam3.cpp:6680–6684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6678}
6679
6680static void sam3_normalize_ne4(const int64_t input_ne[4], int64_t ne[4]) {
6681 for (int i = 0; i < 4; ++i) {
6682 ne[i] = (input_ne && input_ne[i] > 0) ? input_ne[i] : 1;
6683 }
6684}
6685
6686static struct ggml_tensor * sam3_new_f32_tensor_4d_from_ne(struct ggml_context * ctx,
6687 const int64_t ne[4]) {

Calls

no outgoing calls

Tested by

no test coverage detected