Api session event editor overlay set tensor normalized

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: editoroverlay/set_tensor_normalized.

Description: Set whether an input tensor of an Inference Overlay should be normalized when provided to a Neural Network.

Name Importance Type Description Values
0 REQUIRED (OVERLAY Integer ID) Inference Overlay ID
1 REQUIRED (Integer number) Tensor Link ID
2 REQUIRED (true, false) Normalize true or false

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editoroverlay/set_tensor_normalized/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, true ]'

Curl example multi item POST:

curl 'https://engine.tygron.com/api/session/event/editoroverlay/set_tensor_normalized/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, false ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ 1, 1, true ]'
};
fetch("https://engine.tygron.com/api/session/event/editoroverlay/set_tensor_normalized/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));