fix: closes #63
This commit is contained in:
parent
bca44f9ba5
commit
3cd8acb919
@ -164,12 +164,12 @@ func handleEdit(handle *Handle) {
|
|||||||
return c.Error500(err)
|
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{
|
layers = append(layers, layerdef{
|
||||||
id: lastLayer.Id,
|
id: lastLayer.Id,
|
||||||
LayerType: LAYER_DENSE,
|
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),
|
||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -283,7 +283,7 @@ func trainDefinitionExp(c *Context, model *BaseModel, definition_id string, load
|
|||||||
|
|
||||||
got = append(got, layerrow{
|
got = append(got, layerrow{
|
||||||
LayerType: LAYER_DENSE,
|
LayerType: LAYER_DENSE,
|
||||||
Shape: fmt.Sprintf("%d", exp.end-exp.start),
|
Shape: fmt.Sprintf("%d", exp.end-exp.start + 1),
|
||||||
ExpType: 2,
|
ExpType: 2,
|
||||||
LayerNum: i,
|
LayerNum: i,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user