diff --git a/tf_adapter_2.x/npu_device/core/op_executors/npu_static_shape_op.cpp b/tf_adapter_2.x/npu_device/core/op_executors/npu_static_shape_op.cpp index f3c58b2330aa0bbaccbd3a582645d223375b0451..84668f73796289c3d431a8ba7b0101f5edd081db 100644 --- a/tf_adapter_2.x/npu_device/core/op_executors/npu_static_shape_op.cpp +++ b/tf_adapter_2.x/npu_device/core/op_executors/npu_static_shape_op.cpp @@ -39,16 +39,10 @@ std::string NpuStaticShapeOp::AttachedDebugString() const { return ss.str(); } -#ifdef TFA2_COMPILED_FOR_EAGER_MODE -#define TFA2_EAGER_ENABLED true -#else -#define TFA2_EAGER_ENABLED false -#endif - void NpuStaticShapeOp::RunWithShape(TFE_Context *context, NpuDevice *device, const OpExecutor *spec, TensorShapes output_shapes, int num_inputs, TFE_TensorHandle **inputs, int num_outputs, TFE_TensorHandle **outputs, TF_Status *status) { - if (kGraphEngineGreedyMemory || (!TFA2_EAGER_ENABLED)) { + if (kGraphEngineGreedyMemory) { DLOG() << "NPU Executing op " << spec->Op() << " fallback cpu in graph engine greedy memory mode"; device->FallbackCPU(context, spec->NodeDef(), num_inputs, inputs, num_outputs, outputs, status); return;