package caisar

  1. Overview
  2. Docs
A platform for characterizing the safety and robustness of artificial intelligence based software

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caisar-0.2.1.tbz
sha256=a9a704f1e4e255eee2e9b0333e6c7b0e3e002293ce0068faa1c3d7c18d209997
sha512=7e35bd5527f82c5c6f62452c88e2971907a4eab89fd4efb699b99eb95f730d752908d51c47e104dcff5ceb58cf24c87d3399cb42e09a47691440927463168abb

doc/caisar.ir/Ir/Nier_cfg/index.html

Module Ir.Nier_cfgSource

This module defines the structure and interfaces for a Neural IntermediatE Representation (NIER).

It is primarly designed as an intermediate state into producing verifiable terms from an ONNX model.

Tensor module

Tensors are multidimensional arrays used to represent numerical such as a neural network weight

Sourcemodule Tensor : sig ... end

Modules for graph generation

Sourcemodule Node : sig ... end
Sourcemodule type VInput = sig ... end
Sourcemodule MakeVertex (I : VInput) : sig ... end
Sourcemodule Edge : sig ... end

NIER is a graph (V,E) where V is the set of vertices (nodes) and E is the set of edges (connections between nodes). Nodes contains the following informations:

  • unique id
  • name coming from the original model, if it exists
  • shape of the tensor resulting from the application of the node operation, if it exist
  • operation performed
  • parameters of the operation
  • an optional tensor storing the data

Note that tensor have their own shape; they must be equal to the NIER's node shape however.

Sourcemodule NierCFG (I : VInput) : sig ... end
Sourcemodule NierCFGFloat : sig ... end

Pretty printers

Sourceval print_cfg_graph : NierCFGFloat.t -> Base.unit
Sourceval out_cfg_graph : NierCFGFloat.t -> Base.unit
OCaml

Innovation. Community. Security.