codedex clean

This commit is contained in:
Margaret_wangrui 2021-07-28 09:52:29 +08:00
parent cae7f291c4
commit 5a0ac09117
4 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@
#include "pipeline/jit/parse/data_converter.h"
#include "pipeline/jit/static_analysis/auto_monad.h"
#include "pipeline/jit/static_analysis/order_enforce.h"
#include "pipeline/jit/static_analysis/remove_random_op_monad.h"
#include "pipeline/jit/static_analysis/remove_monad.h"
#include "abstract/abstract_value.h"
#include "pipeline/jit/static_analysis/static_analysis.h"
#include "pipeline/jit/static_analysis/program_specialize.h"

View File

@ -189,7 +189,7 @@ class OrderEnforcer {
return real_users;
}
bool IsOneOfPrimitive(const AnfNodePtr &node, const std::set<PrimitivePtr> &special_node_types) {
bool IsOneOfPrimitive(const AnfNodePtr &node, const std::set<PrimitivePtr> &special_node_types) const {
for (const auto &type : special_node_types) {
if (IsPrimitiveCNode(node, type)) {
return true;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "pipeline/jit/static_analysis/remove_random_op_monad.h"
#include "pipeline/jit/static_analysis/remove_monad.h"
#include <algorithm>
#include <map>
#include <queue>

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_RANDOM_OPT_MONAD_H_
#define MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_RANDOM_OPT_MONAD_H_
#ifndef MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_MONAD_H_
#define MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_MONAD_H_
#include "ir/func_graph.h"
@ -24,4 +24,4 @@ namespace mindspore::pipeline {
void RemoveRandomOpMonad(const FuncGraphPtr &func_graph);
} // namespace mindspore::pipeline
#endif // MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_RANDOM_OPT_MONAD_H_
#endif // MINDSPORE_CCSRC_PIPELINE_JIT_REMOVE_MONAD_H_