با سلام
من یه برنامه از نت گرفتم با توجه به اینکه ورژن تنسورفلو 2 و کراس هم 2.2.4 هست خطای :
if K.backend() == 'tensorflow' and not K.tensorflow_backend._is_tf_1():
AttributeError: module 'keras.backend.tensorflow_backend' has no attribute '_is_tf_1
گرفته میشه وقتی ورژن تنسورفلو رو مثلا 1.15.0 آپگرید می کنم دیگه این خطا نمیاد ولی بعد از اجرای برنامه در محیط اسپایدر یه پنجره مشکی ظاهر میشه به نام pythonw.exe و زمانی که پنجره رو می بندم پنجره کنسول کاملا ریست میشه و یکسری پیغام نشان میده
An error ocurred while starting the kernel
2020 23:25:45.676786: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL‑DNN to use the following CPU instructions in performance critical operations: AVX AVX2
To enable them in non‑MKL‑DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2020 23:25:45.680321: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 4. Tune using inter_op_parallelism_threads for best performance.
OMP: Info #212: KMP_AFFINITY: decoding x2APIC ids.
OMP: Info #210: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info
OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: 0
OMP: Info #156: KMP_AFFINITY: 4 available OS procs
OMP: Info #157: KMP_AFFINITY: Uniform topology
OMP: Info #179: KMP_AFFINITY: 1 packages x 2 cores/pkg x 2 threads/core (2 total cores)
OMP: Info #214: KMP_AFFINITY: OS proc to physical thread map:
OMP: Info #171: KMP_AFFINITY: OS proc 0 maps to package 0 core 0 thread 0
OMP: Info #171: KMP_AFFINITY: OS proc 1 maps to package 0 core 0 thread 1
OMP: Info #171: KMP_AFFINITY: OS proc 2 maps to package 0 core 1 thread 0
OMP: Info #171: KMP_AFFINITY: OS proc 3 maps to package 0 core 1 thread 1
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 10128 thread 0 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 6628 thread 1 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 2448 thread 2 bound to OS proc set 1
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 8 thread 3 bound to OS proc set 3
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 9552 thread 4 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 4084 thread 5 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 7524 thread 6 bound to OS proc set 1
OMP: Info #250: KMP_AFFINITY: pid 2564 tid 9632 thread 7 bound to OS proc set 3
کسی میدونه اشکال کار چیه؟
قبلا اصلا این مشکل پیش نیامده