Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffaljidhmah2 committed Mar 24, 2019
1 parent 2239796 commit 411a00c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace dlframework{
namespace dataset{
Tensor ** Read_MNIST_Train_Image(const char * url); //returns a pointer to a Tensor * array
Tensor ** Read_MNIST_Train_Label(const char * url);
Tensor ** Read_MNIST_Test_Iamge(const char * url);
Tensor ** Read_MNIST_Test_Image(const char * url);
Tensor ** Read_MNIST_Test_Label(const char * url);

Tensor ** _read_mnist_image(const char * url, int len);
Expand Down
2 changes: 1 addition & 1 deletion include/variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace dlframework{
Tensor operator-(const Tensor & b) const;
Tensor & operator*=(const float & x);

void Reshape(const std::initializer_list<unsigned> & init_shape);
void reshape(const std::initializer_list<unsigned> & init_shape);
friend std::ostream& operator<<(std::ostream & o, const Tensor & rhs);
};

Expand Down
2 changes: 1 addition & 1 deletion src/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace dlframework{
p=new float[length];
}

void TensorReshape(const std::initializer_list<unsigned> & init_shape){
void Tensor::reshape(const std::initializer_list<unsigned> & init_shape){
dim = init_shape.end()-init_shape.begin();
unsigned i=0;
int new_length=1;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Tensor ** Read_MNIST_Train_Image(const char * url) //returns a pointer to a Tens
return _read_mnist_image(url, 60000);
}

Tensor ** Read_MNIST_Test_Iamge(const char * url)
Tensor ** Read_MNIST_Test_Image(const char * url)
{
return _read_mnist_image(url, 10000);
}
Expand Down

0 comments on commit 411a00c

Please sign in to comment.