[CPU][DEBUG_CAPS] Transformations dump: added CPU opset serialization for XmlBin format (#15565)
This commit is contained in:
1 parent
19e60759cd
commit
67396661a9
2 files changed
+6
-3
No files matched your search
@@ -25,7 +25,7 @@ equals to <xml,dot,svg>
|
||||
* xml (default)\
|
||||
IR in .xml file. Can be opened using, for example, *netron* app. (For now the option is Linux only)
|
||||
* xmlbin\
|
||||
IR in .xml and .bin files. Can be opened using, for example, *netron* app.
|
||||
IR in .xml and .bin files. Can be opened using, for example, *netron* app. Also can be read using OV API
|
||||
* dot\
|
||||
IR in .dot file (.svg.dot file if svg is also specified). Can be inspected using, for example, *graphviz* tools.
|
||||
* svg\
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#pragma once
|
||||
#ifdef CPU_DEBUG_CAPS
|
||||
|
||||
#include "extension.h"
|
||||
#include "debug_caps_config.h"
|
||||
#include "openvino/util/file_util.hpp"
|
||||
#include <openvino/pass/manager.hpp>
|
||||
@@ -66,8 +67,10 @@ private:
|
||||
|
||||
ov::pass::Manager serializer;
|
||||
|
||||
if (config.dumpIR.format.filter[DebugCapsConfig::IrFormatFilter::XmlBin])
|
||||
serializer.register_pass<ov::pass::Serialize>(pathAndName + ".xml", "");
|
||||
if (config.dumpIR.format.filter[DebugCapsConfig::IrFormatFilter::XmlBin]) {
|
||||
auto custom_opsets = std::make_shared<Extension>()->getOpSets();
|
||||
serializer.register_pass<ov::pass::Serialize>(pathAndName + ".xml", "", custom_opsets);
|
||||
}
|
||||
|
||||
if (config.dumpIR.format.filter[DebugCapsConfig::IrFormatFilter::Xml]) {
|
||||
std::string xmlFile(pathAndName + ".xml");
|
||||
|
||||
Reference in new issue
Block a user