Comments (5)
Thank you so much for filing the issue. We will look at it and take appropriate action as soon as possible.' first issue
from deepc.
Thanks @thibnoel for the report.
As a workaround, you can try it on platform https://cainvas.ai-tech.systems/ that hosts deepC.
from deepc.
Hello @srohit0, thanks for your quick answer!
Your suggestion of converting the model on your platform directly worked for the step 1 of the example. However, I feel like there is something I still dont get with the overall workflow; I now tried to compile it with the example command you provide and it fails with the following errors (some of the seem due to bad naming but the others are related to dnnc I think) :
jupyter-tnoel@ip-172-31-18-137:~/deepC/test/compiler/mnist$ /usr/bin/clang++-8 -O3 testnet.cpp -I ../../../include/ -isystem ../../../packages/eigen-eigen-323c052e1731/ -o testnet.exe
In file included from testnet.cpp:24:
/home/jupyter-tnoel/testnet.h:22:7: error: expected unqualified-id
float 12[] = {
^
/home/jupyter-tnoel/testnet.h:29:7: error: expected unqualified-id
float 13[] = {
^
testnet.cpp:49:17: error: no matching constructor for initialization of 'tensor<float>'
tensor<float> dnnc_12(12, {4, 8}, "12", false);
^ ~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'int' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
tensor(tensor const &other) : placeHolder<T>(other) {
^
testnet.cpp:50:17: error: no matching constructor for initialization of 'tensor<float>'
tensor<float> dnnc_13(13, {8, 1}, "13", false);
^ ~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'int' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
tensor(tensor const &other) : placeHolder<T>(other) {
^
testnet.cpp:51:17: error: no matching constructor for initialization of 'tensor<float>'
tensor<float> dnnc_layers_dot_0_dot_bias(layers_dot_0_dot_bias, {8}, "layers_dot_0_dot_bias", false);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'float [8]' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
tensor(tensor const &other) : placeHolder<T>(other) {
^
testnet.cpp:52:17: error: no matching constructor for initialization of 'tensor<float>'
tensor<float> dnnc_layers_dot_1_dot_bias(layers_dot_1_dot_bias, {1}, "layers_dot_1_dot_bias", false);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'float [1]' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
tensor(tensor const &other) : placeHolder<T>(other) {
^
testnet.cpp:54:9: error: too many template arguments for class template 'MatMul'
dnnc::MatMul<float, float, float> MatMul_0("MatMul_0");
^ ~~~~~~~~~~~~~
../../../include/operators/MatMul.h:30:29: note: template is declared here
template <typename T> class MatMul : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~ ^
testnet.cpp:58:9: error: too many template arguments for class template 'Add'
dnnc::Add<float, float, float> Add_1("Add_1");
^ ~~~~~~
../../../include/operators/Add.h:37:7: note: template is declared here
class Add : public baseOperator<To, Ti, Ti> {
^
testnet.cpp:62:9: error: too many template arguments for class template 'Tanh'
dnnc::Tanh<float, float> Tanh_2("Tanh_2");
^ ~~~~~~
../../../include/operators/Tanh.h:31:29: note: template is declared here
template <typename T> class Tanh : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~ ^
testnet.cpp:66:9: error: too many template arguments for class template 'MatMul'
dnnc::MatMul<float, float, float> MatMul_3("MatMul_3");
^ ~~~~~~~~~~~~~
../../../include/operators/MatMul.h:30:29: note: template is declared here
template <typename T> class MatMul : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~ ^
testnet.cpp:70:9: error: too many template arguments for class template 'Add'
dnnc::Add<float, float, float> Add_4("Add_4");
^ ~~~~~~
../../../include/operators/Add.h:37:7: note: template is declared here
class Add : public baseOperator<To, Ti, Ti> {
^
11 errors generated.
Would you please have any leads about how to keep going? Thanks in advance!
Best
from deepc.
@thibnoel - once the graph has errors, everything from that point is malformed. No point looking at the code, much less compiling it.
from deepc.
Hello @srohit0, thanks for the help, I think my graph is now correct but I will take a pause on this as I found a workaround that does not require generating the model through deepC. Anyway I might come back to it, I'm closing this issue in the meantime :)
Best
from deepc.
Related Issues (20)
- Use Google Cloud CI/CD
- confirm use of auto-vectorizer in operators
- explore deepC installation in micropython
- compile-onnx feature does not accomodate variable size input HOT 3
- Uint8 quantisized model throws "struct.error" HOT 4
- "Operator not supported" for implemented operations HOT 5
- Make TEST fails swig tests HOT 2
- Node id's including slashes cause "no such file or directory" error HOT 1
- A complete working example from Converting a pytorch model to .cpp to deploy it on Arduino HOT 15
- ModuleNotFoundError: No module named '_dnnc' HOT 9
- How to embed the weights into the library? HOT 3
- Comparison TensorFlow Lite HOT 5
- AttributeError: 'floatTensor' object has no attribute 'sum' HOT 2
- Failed compiling a simple 2 layer NN model HOT 1
- The tflite model converted by TensorflowLite converter is . HOT 1
- Error while compiling the model HOT 1
- SyntaxError: invalid syntax: "def compilerWrapper;"
- Error: building deepC inside docker container HOT 2
- Error with mnist example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepc.