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-1.0.tbz
sha256=cd24b647565aaa4bb82d46c195c692d56ba0ad4b39bc86ef6baaf2d7a08c92a5
sha512=073761d95d6d8f6eb6f687643054297eb47db5d5bdc3a72ba42bf1509ab76415d485f536e5e42c11bd59c972ab7ad72e398d19af6e74c4f0778f28ef5bf4935e

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.