From 3adaae85659f0e47fa7b272ec082618ce39b795a Mon Sep 17 00:00:00 2001 From: Juncheng Date: Tue, 9 Oct 2018 11:47:36 +0800 Subject: [PATCH] naive infer time shape ignore meaning less (#1299) Former-commit-id: f972a8da4a155acd9c326d9fe1094717932725a0 --- oneflow/core/graph/task_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/oneflow/core/graph/task_node.cpp b/oneflow/core/graph/task_node.cpp index 011e593302..02dd77c74c 100644 --- a/oneflow/core/graph/task_node.cpp +++ b/oneflow/core/graph/task_node.cpp @@ -81,6 +81,7 @@ void TaskNode::PinConsumedRegst() { } void TaskNode::NaiveInferProducedDataRegstTimeShape() { + if (IsMeaningLess()) { return; } std::shared_ptr time_shape; ForEachConsumedDataRegst([&time_shape](const std::string& name, const RegstDesc* regst) { if (time_shape) { -- GitLab