n3-parser 0.3.5

Super-Simple semantic neural network model parser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[test]
fn test_comments() {
  const MODEL: &str = "
// Comment Model
[CommentModel]

// Yes, comment model

  [Conv2d]  // override convolution layer
    * K: kernel size = 3  // default kernel size

  #0 Input = 3, H, W  // define input layer
";

  n3_parser::parser::parse_file(MODEL).unwrap();
}