simaaisigmoid

Table of Contents

Introduction

Sigmoid activation, change all data in bufer with the rule

value = 1 / (1 + std::exp(-value));

Features

Getting Started

To build the plugin use:

source /opt/poky/4.0.10/environment-setup-cortexa65-poky-linux
mkdir build && cd build && cmake .. && make

Prerequisites

  • Yocto SDK installed

Installation

For manual installation:

scp libgstsimaaisigmoid.so sima@<IP address of DaVinci board>:/data/my_pipeline/libs

Usage

Example of usage:

GST_DEBUG=2 gst-launch-1.0 --gst-plugin-path=/data/simaai/applications/EfficientDet/lib simaaisrc location=/data/ev_kernel.out delay=1000 ! simaaisigmoid config="/data/config_sigmoid.json"" ! fakesink

Configuration

Configuration example:

{
  "version" : 0.1,
  "node_name" : "sigmoid",
  "simaai__params" : {
    "params" : 3, <============ NOT USED
    "cpu" : 0, <=============== NOT USED
    "next_cpu" : 0, <========== to define the memory type to allocate
    "out_sz" : 8, <====== Output buffer size. Calculated by
    "no_of_outbuf" : 2, <====== Num of output buffers created by the plugin
    "debug" : 0, <============= NOT USED
    "dump_data" : 0 <========== Save output buffer into file
  }
}

Contributing

License

Acknowledgments