feat(i18n): finish zh-CN example comments and align Strapping term with the glossary

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Sonnet 5.5 committed 2026-11-01 22:11:17 -03:00
1 parent 1d79051250
commit 2b73b57ee6
12 files changed
+84 -84

No files matched your search

+6 -6
View File
@@ -15,29 +15,29 @@ void print_array(const char *label, int16_t *array, int size) {
void app_main(void)
{
// Vetor de entrada (ex: saída de uma camada anterior)
// 输入向量(例如上一层的输出)
int16_t input[INPUT_SIZE] = {1, 2, 3, 4};
// Pesos da camada densa (3x4)
// 全连接层权重(3x4)
int8_t weights[OUTPUT_SIZE * INPUT_SIZE] = {
1, -1, 2, 0,
0, 1, -1, 1,
2, 0, 1, -2
};
// Bias de cada neurônio
// 每个神经元的偏置
int16_t bias[OUTPUT_SIZE] = {10, -5, 0};
// Saída
// 输出
int16_t output[OUTPUT_SIZE];
// Multiplicação da matriz: output = weights * input + bias
// 矩阵乘法:output = weights * input + bias
esp_nn_mul_mat_16x8_16(weights, input, bias, output,
OUTPUT_SIZE, INPUT_SIZE, /*shift=*/0);
print_array("Antes da ReLU", output, OUTPUT_SIZE);
// Aplicar função de ativação ReLU
// 应用 ReLU 激活函数
esp_nn_relu_16(output, OUTPUT_SIZE);
print_array("Depois da ReLU", output, OUTPUT_SIZE);