1515</div >
1616
1717<a href =" https://github.com/Kaweees/kiwigrad " >
18- <img alt =" Zig Logo " src =" assets/img/zig.svg " align =" right " width =" 150 " >
18+ <img alt="Zig Logo" src="assets/img/zig.svg" align="right" width="150">
1919</a >
2020
2121<div align =" left " >
22- <h1 ><em ><a href =" https://github.com/Kaweees/kiwigrad " >~kiwigrad</a ></em ></h1 >
22+ <h1><em><a href="https://github.com/Kaweees/kiwigrad">~kiwigrad</a></em></h1>
2323</div >
2424
2525<!-- ABOUT THE PROJECT -->
@@ -35,14 +35,8 @@ A scalar-valued automatic differentiation (autograd) engine for deep learning wr
3535## Preview
3636
3737<p align =" center " >
38- <img src="assets/img/mlp.png"
39- width = "80%"
40- alt = "MLP"
41- />
42- <img src="assets/img/perceptron.png"
43- width = "80%"
44- alt = "Perceptron"
45- />
38+ <img src="assets/img/mlp.svg" width = "80%" alt = "MLP" />
39+ <img src="assets/img/perceptron.png" width = "80%" alt = "Perceptron" />
4640</p >
4741
4842<!-- GETTING STARTED -->
@@ -58,60 +52,60 @@ To get a local copy of the project up and running on your machine, follow these
5852
59531 . Clone the project repository
6054
61- ``` sh
62- git clone https://github.com/Kaweees/kiwigrad.git
63- cd kiwigrad
64- ```
55+ ``` sh
56+ git clone https://github.com/Kaweees/kiwigrad.git
57+ cd kiwigrad
58+ ```
6559
66602. Install the project dependencies
6761
68- ``` sh
69- nix-shell --max-jobs $( nproc) # Linux / Windows (WSL)
70- nix-shell --max-jobs $( sysctl -n hw.ncpu) # macOS
71- ```
62+ ` ` ` sh
63+ nix-shell --max-jobs $( nproc) # Linux / Windows (WSL)
64+ nix-shell --max-jobs $(sysctl -n hw.ncpu) # macOS
65+ ` ` `
7266
73673. Build the project
7468
75- ``` sh
76- just build
77- ```
69+ ` ` ` sh
70+ just build
71+ ` ` `
7872
79734. Run the project
8074
81- ``` sh
82- just run
83- ```
75+ ` ` ` sh
76+ just run
77+ ` ` `
8478
8579# ## Add as a dependency
8680
8781To include ` kiwigrad` in your Zig project, follow these steps:
8882
89831. Add to your ` build.zig.zon` file via ` zig fetch` :
9084
91- ``` sh
92- zig fetch --save git+https://github.com/Kaweees/kiwigrad.git
93- ```
85+ ` ` ` sh
86+ zig fetch --save git+https://github.com/Kaweees/kiwigrad.git
87+ ` ` `
9488
95892. Add the following line to your ` build.zig` file:
9690
97- ``` zig
98- const kiwigrad = @import("kiwigrad");
91+ ` ` ` zig
92+ const kiwigrad = @import(" kiwigrad" );
9993
100- pub fn build(b: *std.Build) void {
101- // exe setup...
94+ pub fn build(b: * std.Build) void {
95+ // exe setup...
10296
103- const KiwiGrad_dep = b.dependency("kiwigrad", .{
104- .target = target,
105- .optimize = optimize,
106- });
97+ const KiwiGrad_dep = b.dependency(" kiwigrad" , .{
98+ .target = target,
99+ .optimize = optimize,
100+ });
107101
108- const KiwiGrad_module = KiwiGrad_dep.module("kiwigrad");
109- exe.root_module.addImport("kiwigrad", KiwiGrad_module);
102+ const KiwiGrad_module = KiwiGrad_dep.module(" kiwigrad" );
103+ exe.root_module.addImport(" kiwigrad" , KiwiGrad_module);
110104
111- // additional build steps...
112- }
105+ // additional build steps...
106+ }
113107
114- ```
108+ ` ` `
115109
116110# # Usage
117111
0 commit comments