chore: update to go packages versions

This commit is contained in:
2024-01-31 21:48:35 +00:00
parent c00bd87cf7
commit d08a0a2a4c
8 changed files with 503 additions and 107 deletions

View File

@@ -10,6 +10,12 @@ create table if not exists models (
-- -1: failed preparing
-- 1: preparing
status integer default 1,
-- Types:
-- 0: Unset
-- 1: simple
-- 2: expandable
model_type integer default 0,
width integer,
height integer,
@@ -70,6 +76,34 @@ create table if not exists model_definition_layer (
layer_type integer not null,
-- ei 28,28,1
-- a 28x28 grayscale image
shape text not null
shape text not null,
-- Type based on the expandability
-- 0: not expandalbe model
-- 1: fixed
-- 2: head
exp_type integer default 0
);
-- drop table if exists exp_model_head;
create table if not exists exp_model_head (
id uuid primary key default gen_random_uuid(),
def_id uuid references model_definition (id) on delete cascade,
-- Start order id to the class that this model satifies inclusive
range_start integer not null,
-- end order id to the class that this model satifies inclusive
range_end integer not null,
accuracy real default 0,
-- TODO add max epoch
-- 1: Pre Init
-- 2: Init
-- 3: Training
-- 4: Tranied
-- 5: Ready
status integer default 1,
created_on timestamp default current_timestamp,
epoch_progress integer default 0
);