edit chatbot and core

This commit is contained in:
2026-04-29 02:05:59 +07:00
parent 224a6444ef
commit 0a7974260d
9 changed files with 326 additions and 105 deletions
+5 -9
View File
@@ -1,15 +1,11 @@
#ifndef TYPEDEF_H
#define TYPEDEF_H
#include <vector>
const int MAX_CONTEXT = 4; // Сколько токенов видит сеть
const int EMBED_DIM = 4; // Размер вектора одного токена
const int MAX_VOCAB = 13; // Размер словаря
typedef enum {
SIGMOID
} FunctionActivate_t;
typedef struct {
int size;
FunctionActivate_t activate;
} LayerStructure_t;
typedef enum { SIGMOID } FunctionActivate_t;
typedef struct { int size; FunctionActivate_t activate; } LayerStructure_t;
#endif