aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ITensor.cpp2
-rw-r--r--src/core/Utils.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ITensor.cpp b/src/core/ITensor.cpp
index 3dffcd016d..31359c60fe 100644
--- a/src/core/ITensor.cpp
+++ b/src/core/ITensor.cpp
@@ -71,6 +71,7 @@ void ITensor::copy_from(const ITensor &src)
src_it, dst_it);
}
+#ifdef ARM_COMPUTE_DEBUG_ENABLED
void ITensor::print(std::ostream &s, IOFormatInfo io_fmt) const
{
ARM_COMPUTE_ERROR_ON(this->buffer() == nullptr);
@@ -151,6 +152,7 @@ void ITensor::print(std::ostream &s, IOFormatInfo io_fmt) const
}
}
}
+#endif /* ARM_COMPUTE_DEBUG_ENABLED */
bool ITensor::is_used() const
{
diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp
index 6080dc45ba..7223368a7e 100644
--- a/src/core/Utils.cpp
+++ b/src/core/Utils.cpp
@@ -395,6 +395,7 @@ const std::pair<unsigned int, unsigned int> arm_compute::scaled_dimensions(unsig
return std::make_pair(w, h);
}
+#ifdef ARM_COMPUTE_DEBUG_ENABLED
void arm_compute::print_consecutive_elements(std::ostream &s, DataType dt, const uint8_t *ptr, unsigned int n, int stream_width, const std::string &element_delim)
{
switch(dt)
@@ -455,3 +456,4 @@ int arm_compute::max_consecutive_elements_display_width(std::ostream &s, DataTyp
}
return 0;
}
+#endif /* ARM_COMPUTE_DEBUG_ENABLED */