Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYang328 committed Oct 29, 2024
1 parent c4cca9e commit 32869d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/BuddyLeNet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ $ cmake -G Ninja .. \
-DCMAKE_BUILD_TYPE=RELEASE \
-DBUDDY_MLIR_ENABLE_PYTHON_PACKAGES=ON \
-DPython3_EXECUTABLE=$(which python3) \
-DBUDDY_MLIR_ENABLE_DIP_LIB=ON
-DBUDDY_MLIR_ENABLE_DIP_LIB=ON \
-DBUDDY_ENABLE_PNG=ON

$ ninja
$ ninja check-buddy
```
Expand Down
6 changes: 3 additions & 3 deletions frontend/Interfaces/buddy/DIP/ImgContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ template <typename T, size_t N> class Image : public MemRef<T, N> {
Image(std::string filename, ImageModes mode, bool norm = false);

// from data to initialize image
Image(T *data, intptr_t sizes[N]);
Image(T *data, intptr_t sizes[N]) : MemRef<T, N>(data, sizes) {};

// Retrieves the name of the current image format as a string.
std::string getFormatName() const {
Expand Down Expand Up @@ -128,8 +128,8 @@ template <typename T, size_t N> class Image : public MemRef<T, N> {
#endif
};

template <typename T, std::size_t N>
Image<T, N>::Image(T *data, intptr_t sizes[N]): MemRef<T, N>(data, sizes) {}
// template <typename T, std::size_t N>
// Image<T, N>::Image(T *data, intptr_t sizes[N]): MemRef<T, N>(data, sizes) {}

// Image Container Constructor
// Constructs an image container object from the image file path.
Expand Down

0 comments on commit 32869d7

Please sign in to comment.