Skip to content

Commit

Permalink
Remove defer
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Aug 26, 2023
1 parent e987f00 commit 69a44d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sampler.zig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn init(allocator: std.mem.Allocator, cli: *const Cli, vocab_size: usize) !S
}

pub fn deinit(self: *const Self) void {
defer self.allocator.free(self.probability_index_pairs_buffer);
self.allocator.free(self.probability_index_pairs_buffer);
}

pub fn sample(self: *Self, probability_distribution: []f32) usize {
Expand Down

0 comments on commit 69a44d3

Please sign in to comment.