You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# MAX78000 Model Training and Synthesis
2
2
3
-
_July 16, 2021_
3
+
_July 19, 2021_
4
4
5
5
The Maxim Integrated AI project is comprised of five repositories:
6
6
@@ -2131,9 +2131,13 @@ Adding new datasets to the Network Loader is implemented as follows:
2131
2131
fc.linear.bias
2132
2132
```
2133
2133
2134
-
3. Provide a sample input. The sample input is used to generate a known-answer test (self test). The sample input is provided as a NumPy “pickle” — add `sample_dset.npy`forthe dataset named `dset` to the `tests` directory. This file can be generated by saving a sampleinCHW format (no batch dimension) using `numpy.save()`, see below.
2134
+
3. Provide a sample input. The sample input is used to generate a known-answer test (self test) against the predicted label. The purpose of the sample input is to ensure that the generated code matches the model — it does <u>*not*</u> ensure that the model is of good quality. However, it can help finding issuesinthe YAML description of the model.
2135
2135
2136
-
For example, the MNIST 1×28×28 image sample would be stored in`tests/sample_mnist.npy`in an `np.array` with shape `[1, 28, 28]` and datatype `<i8`. The file can be random, or can be obtained from the `train.py` software.
2136
+
The sample input is provided as a NumPy “pickle” — add `sample_dset.npy`forthe dataset named `dset` to the `tests` directory. This file can be generated by saving a samplein CHW format (no batch dimension) using `numpy.save()`, see below.
2137
+
2138
+
For example, the MNIST 1×28×28 image sample would be stored in`tests/sample_mnist.npy`in an `np.array` with shape `[1, 28, 28]` and datatype `>i8` (`np.int64`). The file can contain random integers, or it can be obtained from the `train.py` software.
2139
+
2140
+
*Note: To convert an existing sample input file to `np.int64`, use the `tests/convert_sample.py` script.*
0 commit comments