Print layer name if available
if layer name is not avaiable, then print layer object name and its address
**Self evaluation:**
1. Build test: [x]Passed [ ]Failed [ ]Skipped
2. Run test: [x]Passed [ ]Failed [ ]Skipped
Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
void Layer::print(std::ostream &out, unsigned int flags) {
if (flags & PRINT_INST_INFO) {
out << "===================";
- printInstance(out, this);
+ if (getName().empty())
+ printInstance(out, this);
+ else
+ out << "<" << getName() << ">" << std::endl;
out << "Layer Type: "
<< static_cast<std::underlying_type<LayerType>::type>(type)