Benign rust 89 installs Download

neura-nn 0.7.0

“Layers, losses and optimizers over the Neura graph”

Archive ships a root-level test treeRust test marker or harness
SHA-25638bf891c2d63959e6f6ea06009f8792772644a8fca400a0fe3ab57c9ecd09953

Evidence

imports neura_abi::Element init.rs · lines 1–9
1use neura_abi::Element;
2use neura_graph::{Graph, Init, Shape};
3use neura_nn::{Conv2d, Linear, Mlp};
4use neura_runtime::{MemoryRequest, Runtime, RuntimeRequest};
5
6fn open() -> Runtime {
7 Runtime::open(RuntimeRequest {
8 memory: MemoryRequest {
9 readb …
Calls open or sys_open init.rs · lines 14–29
14:4… .unwrap_or_else(|error| panic!("no device runs the tests: {error}"))
15}
16
17fn reach(fan_in: u32, gain: f32) -> f32 {
18 gain * (3.0 / fan_in as f32).sqrt()
19}
20
21#[test]
22fn every_layer_of_a_stack_draws_the_numbers_its_own_fan_names() {
23 let runtime = open();
24 let graph = Graph::new();
25 let gain = (2.0f32).sqrt();
⋯4 lines
English function-word token "and" init.rs · lines 144–148
144:51… und),
145 "a Xavier init of {fan_in} inputs and {fan_out} outputs draws no number beyond {bound}",
146 );
147 assert!(
148 drawn.iter().any …
English function-word token "the" adapter.rs · lines 14–18
14:4… .unwrap_or_else(|error| panic!("no device runs the tests: {error}"))
15}
16
17fn refuses(action: impl FnOnce()) -> bool {
18 std::panic::catch_unwi …
#[test] attribute attention.rs · lines 146–153
146:9… block.runtime.write(&program, parameter, &values);
147 }
148}
149
150#[test]
151fn an_attention_gradient_matches_finite_differences() {
152 gradient_of_a_multi_head_attention_matches_finite_differences(
153 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.