Skip to content

Commit 081c714

Browse files
committed
Fingerprint and move files
1 parent 84365c4 commit 081c714

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn build(b: *std.Build) void {
5252
// only contains e.g. external object files, you can make this `null`.
5353
// In this case the main source file is merely a path, however, in more
5454
// complicated build scripts, this could be a generated file.
55-
.root_source_file = b.path("train.zig"),
55+
.root_source_file = b.path("examples/train.zig"),
5656
.target = target,
5757
.optimize = optimize,
5858
});

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// original project's identity. Thus it is recommended to leave the comment
2525
// on the following line intact, so that it shows up in code reviews that
2626
// modify the field.
27-
.fingerprint = 0xa4ea5fc0188072e7, // Changing this has security and trust implications.
27+
.fingerprint = 0xb335ced4bf711f3c, // Changing this has security and trust implications.
2828

2929
// Tracks the earliest Zig version that the package considers to be a
3030
// supported use case.

train.zig renamed to examples/train.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const zbench = @import("zbench");
1010
const ValueType = kiwigrad.engine.Value;
1111
const NeuronType = kiwigrad.nn.Neuron;
1212
const LayerType = kiwigrad.nn.Layer;
13-
const MLPType = kiwigrad.nn.MLP;
1413

1514
/// Write the computational graph to a Graphviz file
1615
pub fn draw_graph(comptime T: type, graph: *kiwigrad.engine.Value(T), name: []const u8, writer: anytype) !void {

src/nn.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn Layer(comptime T: type) type {
147147

148148
var arena: std.heap.ArenaAllocator = undefined;
149149

150-
pub fn init(alloc: std.mem.Allocator) !void {
150+
pub fn init(alloc: std.mem.Allocator) void {
151151
arena = std.heap.ArenaAllocator.init(alloc);
152152
}
153153

0 commit comments

Comments
 (0)