package caisar
A platform for characterizing the safety and robustness of artificial intelligence based software
Install
Dune Dependency
Authors
Maintainers
Sources
caisar-4.0.tbz
sha256=58ba1e38721795b306c860b56aaeba971be586cd55fb96e3ec8af72dd005101b
sha512=f1b3b9899660745598cebe7ecb52a39e9e16dcb7352381ea75a80d2afa988437130c00bf66355991421d4cb3dc06b02c185f7d4bdcc1c86dfcde8084bd01a654
doc/caisar.nir/Nir/Tensor/index.html
Module Nir.Tensor
Source
Immutable tensor module
Tensors are multidimensional arrays used to represent numerical such as a neural network paramters.
This library relies on Bigarray.Genarray to instanciante tensors.
get t idx
returns the value in tensor t
stored at coordinates idx
. Throw an error if the coordinate is invalid.
set_idx t idx v
sets value v
for tensor t
at idx
. Throw an error if the coordinate is invalid.
create_1_float f
returns an unidimentional tensor with one floating point value f
.
create_1_int64 i
returns an unidimentional tensor with one int64 value i
.
create_const_float shape v
returns a tensor of shape shape
where each value is initialized to v
.
Source
val reshape :
Shape.t ->
('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t ->
('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page