-
Notifications
You must be signed in to change notification settings - Fork 160
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
[luci-interpreter] Add StaticMemoryManager #7735
Conversation
aafd9e5
to
ce5c21c
Compare
compiler/luci-interpreter/include/luci_interpreter/StaticMemoryManager.h
Outdated
Show resolved
Hide resolved
compiler/luci-interpreter/include/luci_interpreter/StaticMemoryManager.h
Outdated
Show resolved
Hide resolved
ce5c21c
to
cdb59f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
public: | ||
StaticMemoryManager() = delete; | ||
|
||
explicit StaticMemoryManager(uint8_t *buffer_ptr) { _buffer_ptr = buffer_ptr; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(optional)
explicit StaticMemoryManager(uint8_t *buffer_ptr) { _buffer_ptr = buffer_ptr; } | |
explicit StaticMemoryManager(uint8_t *buffer_ptr) : _buffer_ptr(buffer_ptr) { /* Do nothing */ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to run nnas format
, I think this line will be wrapped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to run
nnas format
, I think this line will be wrapped
@binarman @m-bronnikov
I did nnas format and in result it divided the figured brackets on rows
compiler/luci-interpreter/include/luci_interpreter/core/Tensor.h
Outdated
Show resolved
Hide resolved
This commit adds static memory manager. ONE-DCO-1.0-Signed-off-by: Artem Balyshev a.balyshev@partner.samsung.com
This commit deletes destructor and fixes comment in StaticMemoryManager ONE-DCO-1.0-Signed-off-by: Artem Balyshev a.balyshev@partner.samsung.com
2f9ecfd
cdb59f4
to
2f9ecfd
Compare
format-checker failed, please fix format by following commands (need clang-format 3.9):
Or apply format.patch using following commands:
Or there may be files having CRLF as newline. Please use LF. To re-run this test, leave a comment |
This commit fixes constructor and remove redundant actions in allocate method. ONE-DCO-1.0-Signed-off-by: Artem Balyshev a.balyshev@partner.samsung.com Signed-off-by: Artem Balyshev <a.balyshev@partner.samsung.com>
2f9ecfd
to
e191609
Compare
public: | ||
StaticMemoryManager() = delete; | ||
|
||
explicit StaticMemoryManager(uint8_t *buffer_ptr) { _buffer_ptr = buffer_ptr; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to run nnas format
, I think this line will be wrapped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
StaticMemoryManager() = delete; | ||
|
||
explicit StaticMemoryManager(uint8_t *buffer_ptr) : _buffer_ptr(buffer_ptr) | ||
{ /* Do nothing */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks strange, but Im okay with it =)
This pr adds static memory manager to luci-interpreter.
issue: #7522
draft: #7573
ONE-DCO-1.0-Signed-off-by: Artem Balyshev a.balyshev@partner.samsung.com