Get TFLite profile result (POST)
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result \
--header 'x-api-key: <api-key>'import requests
url = "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"device": "<string>",
"tfliteFileSizeBytes": 123,
"isSupportedOnMcu": true,
"customMetrics": [
{
"name": "<string>",
"value": "<string>"
}
],
"hasPerformance": true,
"error": "<string>",
"memory": {
"tflite": {
"ram": 123,
"rom": 123,
"arenaSize": 123
},
"eon": {
"ram": 123,
"rom": 123,
"arenaSize": 123
},
"eonRamOptimized": {
"ram": 123,
"rom": 123,
"arenaSize": 123
}
},
"timePerInferenceMs": 123,
"mcuSupportError": "<string>",
"profilingError": "<string>"
}Get TFLite profile result (POST)
Get the results from a job started from startProfileTfliteJob (via a POST request).
POST
/
api
/
{projectId}
/
jobs
/
profile-tflite
/
{jobId}
/
result
Get TFLite profile result (POST)
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result \
--header 'x-api-key: <api-key>'import requests
url = "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite/{jobId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"device": "<string>",
"tfliteFileSizeBytes": 123,
"isSupportedOnMcu": true,
"customMetrics": [
{
"name": "<string>",
"value": "<string>"
}
],
"hasPerformance": true,
"error": "<string>",
"memory": {
"tflite": {
"ram": 123,
"rom": 123,
"arenaSize": 123
},
"eon": {
"ram": 123,
"rom": 123,
"arenaSize": 123
},
"eonRamOptimized": {
"ram": 123,
"rom": 123,
"arenaSize": 123
}
},
"timePerInferenceMs": 123,
"mcuSupportError": "<string>",
"profilingError": "<string>"
}Authorizations
ApiKeyAuthenticationJWTAuthenticationJWTHttpHeaderAuthenticationOAuth2
Response
200 - application/json
OK
Whether the operation succeeded
Available options:
int8, float32, akida Custom, device-specific performance metrics
Show child attributes
Show child attributes
If false, then no metrics are available for this target
Optional error description (set if 'success' was false)
Show child attributes
Show child attributes
Specific error during profiling (e.g. model not supported)
Was this page helpful?
⌘I