!15592 delete useless code

From: @ling_qiao_min
Reviewed-by: @hangangqiang,@zhanghaibo5
Signed-off-by: @hangangqiang
This commit is contained in:
mindspore-ci-bot 2021-04-25 14:05:13 +08:00 committed by Gitee
commit d7a203fb3b
3 changed files with 1 additions and 13 deletions

View File

@ -154,7 +154,6 @@ int NetRunner::InitDB() {
TypeCast typecast(mindspore::DataType::kNumberTypeInt32);
train_ds_ = train_ds_->Map({&typecast}, {"label"});
// train_ds_ = train_ds_->Shuffle(2);
train_ds_ = train_ds_->Batch(batch_size_, true);
if (verbose_) {

View File

@ -722,9 +722,6 @@ int Scheduler::ConstructSubGraphs(std::vector<kernel::LiteKernel *> src_kernel,
if (head_kernel->subgraph_type() != kernel::kNotSubGraph) {
(*is_kernel_finish)[head_kernel] = true;
dst_kernel->push_back(head_kernel);
/* npu support split */
/* ConstructSubGraphs(head_kernel->nodes(), dst_kernel, is_kernel_finish); */
continue;
}
if (head_kernel->desc().arch == mindspore::kernel::kAPU) {

View File

@ -45,7 +45,6 @@ void SearchSubGraph::ConvertSubGraphToModel() {
if (subgraph.nodes_.empty()) {
continue;
}
// DeviceType device = subgraph.device_;
int new_sub_index = model_->sub_graphs_.size();
int partial_index = model_->all_nodes_.size();
@ -71,7 +70,6 @@ void SearchSubGraph::ConvertSubGraphToModel() {
new_sub_graph->node_indices_.push_back(node_index);
VectorErase(&main_graphs->node_indices_, node_index);
VectorErase(&subgraph.nodes_, node_index);
// model_->all_nodes_[node_index]->device_type_ = device;
}
for (uint32_t head_index : subgraph.heads_) {
@ -227,13 +225,7 @@ void SearchSubGraph::InitSubgraphDevice() {
}
}
void SearchSubGraph::InitMainGraphDevice() {
// DeviceType main_device = DT_GPU;
// Model::SubGraph *main_graph = model_->sub_graphs_.front();
// for (uint32_t node_index : main_graph->node_indices_) {
// Model::Node *node = model_->all_nodes_[node_index];
// node->device_type_ = main_device;
}
void SearchSubGraph::InitMainGraphDevice() { return; }
void SearchSubGraph::SubgraphFusion() {
while (sub_graphs_.size() > 2) {