Skip to content

Commit

Permalink
hacky
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-tan committed Mar 30, 2018
1 parent f9063b4 commit 3ea8b1f
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 171 deletions.
2 changes: 1 addition & 1 deletion image.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define IMAGE_H

#include <vector>
#include "utensor/tensor.hpp"
#include "uTensor/core/tensor.hpp"

template<typename T, template<typename> typename TENSOR=RamTensor>
class Image {
Expand Down
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ int main()
img28_2.get_data()->resize({1, 784});
pc.printf("Creating Graph\n\r");

get_deep_mlp_ctx(ctx, img28_2.get_data());
get_quant_model_ctx(ctx, img28_2.get_data());
pc.printf("Evaluating\n\r");
ctx.eval();
S_TENSOR prediction = ctx.get({"y_pred:0"});
S_TENSOR prediction = ctx.get({"Prediction/y_pred:0"});
int result = *(prediction->read<int>(0,0));

pc.printf("Number guessed %d\n\r", result);
Expand Down
Loading

0 comments on commit 3ea8b1f

Please sign in to comment.