diff --git a/src/plugins/intel_cpu/src/nodes/string_tensor_pack.cpp b/src/plugins/intel_cpu/src/nodes/string_tensor_pack.cpp index 06055f551c3f65..4137ebfc45d7ad 100644 --- a/src/plugins/intel_cpu/src/nodes/string_tensor_pack.cpp +++ b/src/plugins/intel_cpu/src/nodes/string_tensor_pack.cpp @@ -81,6 +81,10 @@ struct StringTensorPack::StringTensorPackExecute { } }; +bool StringTensorPack::isExecutable() const { + return !(isInputTensorAtPortEmpty(0) || isInputTensorAtPortEmpty(1)); +} + void StringTensorPack::execute(dnnl::stream strm) { auto indicesPrecision = getParentEdgeAt(0)->getMemory().getDesc().getPrecision(); StringTensorPackContext ctx = {*this}; diff --git a/src/plugins/intel_cpu/src/nodes/string_tensor_pack.h b/src/plugins/intel_cpu/src/nodes/string_tensor_pack.h index 78eb86d0c5aa84..ad83927b4b8f0e 100644 --- a/src/plugins/intel_cpu/src/nodes/string_tensor_pack.h +++ b/src/plugins/intel_cpu/src/nodes/string_tensor_pack.h @@ -17,6 +17,7 @@ class StringTensorPack : public Node { static bool isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept; void getSupportedDescriptors() override; void initSupportedPrimitiveDescriptors() override; + bool isExecutable() const override; void execute(dnnl::stream strm) override; bool created() const override; bool needPrepareParams() const override;