package neural_nets_lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A from-scratch Deep Learning framework with an optimizing compiler, shape inference, concise syntax
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.3.3.3.tar.gz
md5=9170d4d98422350c9a73a95adfb795dc
sha512=c1b024a69b1d0338af6e34508dbf6dccf3c2b6cc156e7628c3d7853c7040e225bdfc0a8731bb4db5a97edba90e26439987bfa505154d23af46f119c07ad809ed
doc/neural_nets_lib/Ocannl/Row/index.html
Module Ocannl.RowSource
The row type, shape inference related types and constraint solving.
Source
type dim = | Var of dim_var| Dim of {d : Base.int;label : Base.string Base.option;proj_id : Base.int Base.option;
}
A single axis in a shape.
Source
val dim_val :
dim ->
([ `d of Base.int ]
* [ `label of Base.string Base.option ]
* [ `proj_id of Base.int Base.option ])
Base.optionA bcast specifies how axes of a single kind in a shape (i.e. the row) can adapt to other shapes.
Source
val hash_fold_dim_constraint :
Ppx_hash_lib.Std.Hash.state ->
dim_constraint ->
Ppx_hash_lib.Std.Hash.stateSource
type row_constraint = | Unconstrained| Total_elems of {nominator : Base.int;divided_by : dim_var_set;
}(*The row or remainder of a row, inclusive of the further row spec, has this many elements.
*)
Source
val hash_fold_row_constraint :
Ppx_hash_lib.Std.Hash.state ->
row_constraint ->
Ppx_hash_lib.Std.Hash.stateSource
val total_elems_val :
row_constraint ->
([ `nominator of Base.int ] * [ `divided_by of dim_var_set ]) Base.optionSource
type dim_entry = | Solved_dim of dim| Bounds_dim of {cur : dim_var Base.list;subr : dim_var Base.list;lub : dim Base.option;constr : dim_constraint;
}
An entry implements inequalities cur >= v >= subr and/or an equality v = solved. cur and subr must be sorted using the @@deriving compare comparison.
Source
type row_entry = | Solved_row of t| Bounds_row of {cur : row_var Base.list;subr : row_var Base.list;lub : t Base.option;constr : row_constraint;
}
Source
val dim_constr_val :
constraint_ ->
([ `d of dim ] * [ `constr of dim_constraint ]) Base.optionSource
val solve_inequalities :
stage:stage ->
constraint_ Base.list ->
environment ->
constraint_ Base.list * environmentSource
val get_proj_equations :
constraint_ Base.list ->
Arrayjit.Indexing.axis_index dim_map ->
environment ->
proj_equation Base.list sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>