Could someone please tell me how to compile tf without avx?

Hi, I followed the guide for windows and bazel, I add the following flag: --define=tflite_with_xnnpack=false, plus the all no avx in configure, but it still fails trying to compile xnnpack.

Google AI studio’da istem oluştura sorduğumda aşağıdaki yanıtı vermektedir. Daha detaylı olarak bilgi almak istersen istem oluşturabilirsin

“”"Windows’ta AVX’siz TensorFlow derlemesi için adımlar:

  1. Ortamı Kontrol Et: Bazel, Python, MSVC, CMake ve Git’in doğru sürümü kurulu olsun.

  2. Kaynak Kodu: TensorFlow’un doğru sürümünü GitHub’dan indirin.

  3. Configure.py:

  • CUDA’ya “N”, optimizasyona “N” (veya AVX’siz seçenek) deyin.
  1. Bazelrc Ayarları:
  • .bazelrc’de noavx tanımlayın: build:noavx --copt=-mavx=0 ; build:noavx --host_copt=-mavx=0

  • Çakışan ayarları kaldırın.

  1. Derleme Komutu:
bazel build --config=noavx --define=tflite_with_xnnpack=false //tensorflow/tools/pip_package:build_pip_package

content_copydownload

Use code with caution.Bash

  1. Temiz Derleme: bazel clean --expunge ve yeniden deneyin.

Hala XNNPACK hatası alıyorsanız:

  • –define=tflite_with_xnnpack=false bayrağını eklediğinizden emin olun.

  • Manuel olarak XNNPACK’i devre dışı bırakmayı deneyin (zor ve riskli).

Sorun Devam Ederse: Hata mesajlarını Google’da aratın, Stack Overflow’da sorun veya TensorFlow GitHub’da inceleyin.

Not: AVX’siz derleme performansı düşürür. Mümkünse AVX’li işlemci kullanın veya TensorFlow Lite’ı deneyin.“”

well, I asked all the AI, and no one was able to give me an answer that worked.
already put in the configure steps all the noavx and in build tlite_with_xnnpack=false but it still try to compile it and fails