MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / assert_shape_3d

Function assert_shape_3d

common/train.cpp:196–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void assert_shape_3d(struct ggml_tensor * tensor, int64_t ne0, int64_t ne1, int64_t ne2) {
197 GGML_ASSERT(tensor->n_dims == 3);
198 GGML_ASSERT(tensor->ne[0] == ne0);
199 GGML_ASSERT(tensor->ne[1] == ne1);
200 GGML_ASSERT(tensor->ne[2] == ne2);
201}
202
203void assert_shape_4d(struct ggml_tensor * tensor, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) {
204 GGML_ASSERT(tensor->n_dims == 4);

Callers 3

forward_batchFunction · 0.85
llama_build_train_graphsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected