diff --git a/src/plugins/intel_cpu/src/nodes/stft.cpp b/src/plugins/intel_cpu/src/nodes/stft.cpp index e6dccddc2adb4a..037314c6f49596 100644 --- a/src/plugins/intel_cpu/src/nodes/stft.cpp +++ b/src/plugins/intel_cpu/src/nodes/stft.cpp @@ -73,15 +73,6 @@ bool STFT::needPrepareParams() const { return false; } -void STFT::prepareParams() { - const auto& input_shape = getParentEdgeAt(DATA_IDX)->getMemory().getStaticDims(); - if (input_shape.size() < 2) { - THROW_CPU_NODE_ERR("has incompatible 'data' shape ", - PartialShape(input_shape), - ". Only tensors of rank at least 2 are allowed."); - } -} - bool STFT::created() const { return getType() == Type::STFT; } diff --git a/src/plugins/intel_cpu/src/nodes/stft.h b/src/plugins/intel_cpu/src/nodes/stft.h index 1eae552b8ce2ec..cd4578b0230bf8 100644 --- a/src/plugins/intel_cpu/src/nodes/stft.h +++ b/src/plugins/intel_cpu/src/nodes/stft.h @@ -21,7 +21,6 @@ class STFT : public Node { void initSupportedPrimitiveDescriptors() override; bool created() const override; static bool isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept; - void prepareParams() override; bool needPrepareParams() const override; void createPrimitive() override;