Skip to content
Snippets Groups Projects

Improve UI for Operator/Node/GraphView/Tensor

Merged Maxence Naud requested to merge ui_parameters into dev
Files
88
from aidge_core.aidge_export_aidge.utils import operator_register
from aidge_core.aidge_export_aidge import ROOT_EXPORT
from aidge_core import DataType, ExportNode, generate_file, generate_str
from aidge_core import dtype, ExportNode, generate_file, generate_str
import numpy as np
from pathlib import Path
# Convert aidge datatype to C++ type
datatype_converter = {
DataType.Float64 : "double",
DataType.Float32 : "float",
DataType.Float16 : "half_float::half",
DataType.Int8 : "int8_t",
DataType.Int16 : "int16_t",
DataType.Int32 : "int32_t",
DataType.Int64 : "int64_t",
DataType.UInt8 : "uint8_t",
DataType.UInt16 : "uint16_t",
DataType.UInt32 : "uint32_t",
DataType.UInt64 : "uint64_t"
dtype.float64 : "double",
dtype.float32 : "float",
dtype.float16 : "half_float::half",
dtype.int8 : "int8_t",
dtype.int16 : "int16_t",
dtype.int32 : "int32_t",
dtype.int64 : "int64_t",
dtype.uint8 : "uint8_t",
dtype.uint16 : "uint16_t",
dtype.uint32 : "uint32_t",
dtype.uint64 : "uint64_t"
}
Loading