forked from mindspore-Ecosystem/mindspore
!30540 [MS][RDR] fix codecheck warnings
Merge pull request !30540 from louie5/master
This commit is contained in:
commit
c66bd2063f
|
@ -14,8 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "debug/rdr/base_recorder.h"
|
||||
#include <sys/stat.h>
|
||||
#include <fstream>
|
||||
#include "debug/common.h"
|
||||
#include "utils/utils.h"
|
||||
#include "utils/comm_manager.h"
|
||||
|
|
|
@ -60,7 +60,6 @@ class BaseRecorder {
|
|||
std::optional<std::string> GetFileRealPath(const std::string &suffix = "") const;
|
||||
|
||||
virtual void Export() {}
|
||||
virtual void UpdateInfo(const BaseRecorder &recorder) {}
|
||||
|
||||
protected:
|
||||
std::string module_;
|
||||
|
@ -71,5 +70,10 @@ class BaseRecorder {
|
|||
std::string delimiter_{"."};
|
||||
};
|
||||
using BaseRecorderPtr = std::shared_ptr<BaseRecorder>;
|
||||
|
||||
class CNode;
|
||||
using CNodePtr = std::shared_ptr<CNode>;
|
||||
class FuncGraph;
|
||||
using FuncGraphPtr = std::shared_ptr<FuncGraph>;
|
||||
} // namespace mindspore
|
||||
#endif // MINDSPORE_CCSRC_DEBUG_RDR_BASE_RECORDER_H_
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "debug/rdr/graph_exec_order_recorder.h"
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include "mindspore/core/ir/anf.h"
|
||||
#include "mindspore/core/utils/log_adapter.h"
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include "debug/rdr/base_recorder.h"
|
||||
|
||||
namespace mindspore {
|
||||
class CNode;
|
||||
using CNodePtr = std::shared_ptr<CNode>;
|
||||
class GraphExecOrderRecorder : public BaseRecorder {
|
||||
public:
|
||||
GraphExecOrderRecorder() : BaseRecorder() {}
|
||||
|
|
|
@ -26,8 +26,6 @@ struct DumpGraphParams {
|
|||
bool dump_full_name;
|
||||
int dump_mode;
|
||||
};
|
||||
class FuncGraph;
|
||||
using FuncGraphPtr = std::shared_ptr<FuncGraph>;
|
||||
class GraphRecorder : public BaseRecorder {
|
||||
public:
|
||||
GraphRecorder() : BaseRecorder(), func_graph_(nullptr), graph_type_("") {}
|
||||
|
@ -37,7 +35,7 @@ class GraphRecorder : public BaseRecorder {
|
|||
~GraphRecorder() {}
|
||||
void SetGraphType(const std::string &file_type) { graph_type_ = file_type; }
|
||||
void SetFuncGraph(const FuncGraphPtr &func_graph) { func_graph_ = func_graph; }
|
||||
void SetDumpFlag(DumpGraphParams info) { dump_graph_info_ = info; }
|
||||
void SetDumpFlag(const DumpGraphParams &info) { dump_graph_info_ = info; }
|
||||
|
||||
virtual void Export();
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "debug/rdr/mem_address_recorder.h"
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include "kernel/kernel.h"
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <utility>
|
||||
#include "utils/hash_map.h"
|
||||
#include "debug/env_config_parser.h"
|
||||
#include "debug/rdr/base_recorder.h"
|
||||
|
||||
namespace mindspore {
|
||||
// The number is the reciprocal of the golden ratio.
|
||||
|
@ -51,8 +52,6 @@ struct pair_hash {
|
|||
}
|
||||
};
|
||||
|
||||
class BaseRecorder;
|
||||
using BaseRecorderPtr = std::shared_ptr<BaseRecorder>;
|
||||
class RecorderManager {
|
||||
public:
|
||||
static RecorderManager &Instance() {
|
||||
|
|
|
@ -23,11 +23,6 @@
|
|||
#include "debug/rdr/graph_recorder.h"
|
||||
|
||||
namespace mindspore {
|
||||
class FuncGraph;
|
||||
class CNode;
|
||||
using FuncGraphPtr = std::shared_ptr<FuncGraph>;
|
||||
using CNodePtr = std::shared_ptr<CNode>;
|
||||
|
||||
namespace kernel {
|
||||
class Address;
|
||||
struct KernelLaunchInfo;
|
||||
|
|
|
@ -50,8 +50,6 @@ class ExecNode {
|
|||
};
|
||||
using ExecNodePtr = std::shared_ptr<ExecNode>;
|
||||
|
||||
class CNode;
|
||||
using CNodePtr = std::shared_ptr<CNode>;
|
||||
class StreamExecOrderRecorder : public BaseRecorder {
|
||||
public:
|
||||
StreamExecOrderRecorder() : BaseRecorder() {}
|
||||
|
|
Loading…
Reference in New Issue