From 0a719fc4b7727301d1e6f8126fa40a3bb6c2feea Mon Sep 17 00:00:00 2001 From: lichun Date: Wed, 13 Jan 2021 15:27:04 +0800 Subject: [PATCH] abandon using EXPERIMENTAL_DYNAMIC_PARTITION --- ge/graph/partition/dynamic_shape_partition.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ge/graph/partition/dynamic_shape_partition.cc b/ge/graph/partition/dynamic_shape_partition.cc index 81295c84..2ec501a8 100755 --- a/ge/graph/partition/dynamic_shape_partition.cc +++ b/ge/graph/partition/dynamic_shape_partition.cc @@ -56,6 +56,11 @@ static bool IsContainResourceOp(const ComputeGraphPtr &root_graph) { if (type == DT_STRING || type == DT_RESOURCE || type == DT_STRING_REF) { if (std::getenv("EXPERIMENTAL_DYNAMIC_PARTITION") == nullptr) { return false; + } else { + GELOGE(FAILED, "In dynamic shape scene, model contains data type:" + "DT_STRING/DT_RESOURCE/DT_STRING_REF may not be supported well " + "temporarily, please retry with \"unset EXPERIMENTAL_DYNAMIC_PARTITION\"."); + break; } } } @@ -64,6 +69,11 @@ static bool IsContainResourceOp(const ComputeGraphPtr &root_graph) { if (type == DT_STRING || type == DT_RESOURCE || type == DT_STRING_REF) { if (std::getenv("EXPERIMENTAL_DYNAMIC_PARTITION") == nullptr) { return false; + } else { + GELOGE(FAILED, "In dynamic shape scene, model contains data type:" + "DT_STRING/DT_RESOURCE/DT_STRING_REF may not be supported well " + "temporarily, please retry with \"unset EXPERIMENTAL_DYNAMIC_PARTITION\"."); + break; } } }