Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make datatypes available in python interface #65

Open
srohit0 opened this issue Sep 20, 2019 · 0 comments
Open

make datatypes available in python interface #65

srohit0 opened this issue Sep 20, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@srohit0
Copy link
Member

srohit0 commented Sep 20, 2019

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()
....
@srohit0 srohit0 added the enhancement New feature or request label Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants