package caisar
A platform for characterizing the safety and robustness of artificial intelligence based software
Install
Dune Dependency
Authors
Maintainers
Sources
caisar-2.1.tbz
sha256=1b25c8668d428bcfc83c95147b6e45ff0a3bfa05ecd11369d12e963e29819e2e
sha512=edc7d7c0e96802811de3cb1caa3d14cc3d867ee7310748e8188eca9246a362549545c7816c8037511931dc4b7770b5ccc11b0d03abe8843b7c4db7880bf8e1fd
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
.
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