Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf15eb85

Browse files
committed
minor instruction fix in readme
1 parent55bd993 commitf15eb85

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎DigitRecognition/DigitRecognition.ino‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int argmax(const Tensor &logits) {
1212
uint32_t num_elems = logits->num_elems();
1313
float max_value =static_cast<float>(logits(0));
1414
int max_index =0;
15-
for (int i =1; i < num_elems; ++i) {
15+
for (uint32_t i =1; i < num_elems; ++i) {
1616
float value =static_cast<float>(logits(i));
1717
if (value >= max_value) {
1818
max_value = value;
@@ -39,8 +39,6 @@ void setup() {
3939
.eval();
4040

4141
int max_index =argmax(logits);
42-
input_image.free();
43-
logits.free();
4442

4543
Serial.printf("pred label: %d\r\n", max_index);
4644

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ git clone git@github.com:uTensor/uTensor.git
1717
```
1818
- Checkout the right banch
1919
```
20+
cd uTensor
2021
git checkout f/arduino
2122
```
2223

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp