To run the convert_mnist.py script.
python3 -m venv venv
source venv/bin/activate
pip install torch torchvision safetensors
python3 convert_mnist.py
To run the convert_mnist.py script.
python3 -m venv venv
source venv/bin/activate
pip install torch torchvision safetensors
python3 convert_mnist.py
| ; |
| ; |
| ;; OCaml stuff | |
| ; locate opam's site-lisp | |
| (setq opam-share | |
| (replace-regexp-in-string "\n$" "" | |
| (shell-command-to-string "opam var share 2> /dev/null"))) | |
| (add-to-list 'load-path (expand-file-name "emacs/site-lisp" opam-share)) | |
| ; merlin | |
| (require 'merlin) |
| (*--------------------------------------------------------------------------- | |
| Copyright (c) 2025 The opam programmers. All rights reserved. | |
| SPDX-License-Identifier: LGPL-2.1-only WITH OCaml-LGPL-linking-exception | |
| ---------------------------------------------------------------------------*) | |
| (* Usage: opam2json < opam | |
| opam switch export - | opam2json | |
| Compile with: | |
| ocamlfind ocamlopt -linkpkg -package opam-core,opam-format \ | |
| opam2json.ml -o opam2json *) |
| #!/usr/bin/env ocaml | |
| (*--------------------------------------------------------------------------- | |
| Copyright (c) 2025 Daniel C. Bünzli. All rights reserved. | |
| SPDX-License-Identifier: ISC | |
| ---------------------------------------------------------------------------*) | |
| #use "topfind" | |
| #require "b0.std" | |
| #require "b0.kit" |
| _b0 | |
| _build |
| (*--------------------------------------------------------------------------- | |
| Copyright (c) 2025 The bigbytes programmers. All rights reserved. | |
| SPDX-License-Identifier: ISC | |
| ---------------------------------------------------------------------------*) | |
| (** Bigarrays of bytes. | |
| {b Note.} Getter and setters raise [Invalid_argument] on out of | |
| bounds errors. Functions that encode 8-bit or 16-bit integers | |
| represented by [int] values truncate their input their least |
| (*--------------------------------------------------------------------------- | |
| Copyright (c) 2018 Daniel C. Bünzli. All rights reserved. | |
| SPDX-License-Identifier: ISC | |
| ---------------------------------------------------------------------------*) | |
| (** Integer types. | |
| [Ints] provides types for specifying sized integer types not | |
| supported by the {!Stdlib}. It also provides bitwise conversion | |
| functions and safe, magnitude preserving, conversions. |
| _b0 |