fix: closes #63

This commit is contained in:
Andre Henriques 2024-02-10 09:41:16 +00:00
parent bca44f9ba5
commit 3cd8acb919
2 changed files with 3 additions and 3 deletions

View File

@ -164,12 +164,12 @@ func handleEdit(handle *Handle) {
return c.Error500(err)
}
c.Logger.Info("res", "id", lastLayer.Id, "start", lastLayer.Range_start, "end", lastLayer.Range_end)
c.Logger.Info("res", "id", lastLayer.Id, "start", lastLayer.Range_start, "end", lastLayer.Range_end, "shape", fmt.Sprintf("%d, 1", lastLayer.Range_end-lastLayer.Range_start + 1))
layers = append(layers, layerdef{
id: lastLayer.Id,
LayerType: LAYER_DENSE,
Shape: fmt.Sprintf("%d, 1", lastLayer.Range_end-lastLayer.Range_start),
Shape: fmt.Sprintf("%d, 1", lastLayer.Range_end-lastLayer.Range_start + 1),
})
/*

View File

@ -283,7 +283,7 @@ func trainDefinitionExp(c *Context, model *BaseModel, definition_id string, load
got = append(got, layerrow{
LayerType: LAYER_DENSE,
Shape: fmt.Sprintf("%d", exp.end-exp.start),
Shape: fmt.Sprintf("%d", exp.end-exp.start + 1),
ExpType: 2,
LayerNum: i,
})