ai-techsystems / deepC

vendor independent TinyML deep learning library, compiler and inference framework microcomputers and micro-controllers
https://cainvas.ai-tech.systems/
Apache License 2.0
558 stars 86 forks source link

make datatypes available in python interface #65

Open srohit0 opened 5 years ago

srohit0 commented 5 years ago

similar to numpy or onnx based on feedback. File: tensor.i %include "core/datatypes.h"

Change:

  1. lowercase core/datatypes.h enum DNNC_DataType

  2. src/core/datatypes.cpp, corresponding case changes

  3. include/core/tensor.h add DNNC_DataType argument in

    tensor<newT> asType(DNNC_DataType newType)

Remove

tensor<double> asTypeDouble()
tensor<float> asTypeFloat()
....