Skip to content
Snippets Groups Projects
Commit 7b1653e6 authored by Maxence Naud's avatar Maxence Naud
Browse files

restore bad rebase

parent 7c87f0f8
No related branches found
No related tags found
2 merge requests!279v0.4.0,!242Extends the functionalities of Resize Operator
......@@ -236,10 +236,11 @@ void Tensor::resize(const std::vector<DimSize_t>& dims,
}
std::string Tensor::toString() const {
AIDGE_ASSERT(
mImpl && (undefined() || (dims() == std::vector<DimSize_t>({0})) ||
(mImpl->hostPtr() != nullptr)),
"tensor should have a valid host pointer");
if (!hasImpl() || undefined()) {
// Return no value on no implementation or undefined size
return std::string("{}");
}
// TODO: move lambda elsewhere?
auto ptrToString = [](DataType dt, void* ptr, std::size_t idx) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment