Skip to content

Commit 605187a

Browse files
committed
style: valign
Branch: GGUFToolOutputs Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
1 parent 2327538 commit 605187a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/gguf/gguf.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ static bool gguf_ex_read_1(const std::string & fname, bool check_data) {
181181
printf("%s: n_tensors: %d\n", __func__, n_tensors);
182182

183183
for (int i = 0; i < n_tensors; ++i) {
184-
const char * name = gguf_get_tensor_name (ctx, i);
185-
const size_t size = gguf_get_tensor_size (ctx, i);
186-
const size_t offset = gguf_get_tensor_offset(ctx, i);
187-
const auto type = gguf_get_tensor_type(ctx, i);
188-
const char * type_name = ggml_type_name(type);
189-
const size_t type_size = ggml_type_size(type);
184+
const char * name = gguf_get_tensor_name (ctx, i);
185+
const size_t size = gguf_get_tensor_size (ctx, i);
186+
const size_t offset = gguf_get_tensor_offset(ctx, i);
187+
const auto type = gguf_get_tensor_type(ctx, i);
188+
const char * type_name = ggml_type_name(type);
189+
const size_t type_size = ggml_type_size(type);
190190
const size_t n_elements = size / type_size;
191191

192192
printf("%s: tensor[%d]: name = %s, size = %zu, offset = %zu, type = %s, n_elts = %zu\n", __func__, i, name, size, offset, type_name, n_elements);

0 commit comments

Comments
 (0)