]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
mnist : clean whitespace
authorGeorgi Gerganov <redacted>
Sat, 11 May 2024 13:42:01 +0000 (16:42 +0300)
committerGeorgi Gerganov <redacted>
Sat, 11 May 2024 18:30:08 +0000 (21:30 +0300)
ggml-ci

examples/mnist/convert-h5-to-ggml.py

index a4f75365409b61d88657100ffe4c019e28117a3c..4f8d28da85b474640be9dff3a5b0cb58f709a4d8 100644 (file)
@@ -18,7 +18,6 @@ import json
 import numpy as np
 import re
 
-
 import torch
 import torch.nn as nn
 import torchvision.datasets as dsets
@@ -45,11 +44,11 @@ fout.write(struct.pack("i", 0x67676d6c)) # magic: ggml in hex
 
 for name in list_vars.keys():
     data = list_vars[name].squeeze().numpy()
-    print("Processing variable: " + name + " with shape: ", data.shape) 
+    print("Processing variable: " + name + " with shape: ", data.shape)
     n_dims = len(data.shape);
-   
+
     fout.write(struct.pack("i", n_dims))
-    
+
     data = data.astype(np.float32)
     for i in range(n_dims):
         fout.write(struct.pack("i", data.shape[n_dims - 1 - i]))