TensorFlow wasn't compiled to use SSE (etc.) instructions, but these are available

PROBLEM

When I just compile a very simple example with Tensorflow,It just jump out several similar errors like things below.

W : The TensorFlow library wasn’t compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.

SOLUTION

SSE(Streaming SIMD Extensions)

In computing, Streaming SIMD Extensions (SSE) is an SIMD instruction set extension to the x86 architecture, designed by Intel and introduced in 1999 in their Pentium III series of processors shortly after the appearance of AMD’s 3DNow!

Click here to view more details!

First of all.It starts with the letter ‘W’,which means it’s just a warning.The warnings refer to the fact that your CPU supports SSE Instructions, which allow some fast in-hardware-parallel operations.If you want to enable the option and use SSE,you have got to compile source enabling the specific SSE version you’re targeting.
But I don’t want to waste so much time at the beginning of my study.So if you are just the same as me,you can just add the below two lines in the beginning of your file to fix the warning.
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
### 解决许可证协议未被批准导致安装中止的问题 当遇到“License Agreement Not Approved Aborting Installation”的错误提示时,通常是因为软件安装程序未能成功检测到用户已接受许可协议。以下是可能的原因以及解决方案: #### 原因分析 1. **图形界面不可用**:如果是在无头服务器或远程环境中运行安装脚本,则可能导致无法正常显示许可协议对话框[^1]。 2. **自动化脚本配置不当**:某些情况下,使用无人值守安装脚本时,参数设置不正确可能会引发此问题[^2]。 3. **权限不足**:当前执行安装操作的账户可能缺乏必要的管理员权限来完成安装过程[^3]。 #### 解决方案 ##### 方法一:手动确认许可协议 对于交互式的安装环境,确保在启动安装之前仔细阅读并明确同意所有的条款条件后再继续下一步骤的操作。这一步可以通过点击GUI中的“I Agree”按钮实现[^4]。 ##### 方法二:修改命令行选项以自动接受EULA 如果是通过命令行或者批处理文件来进行静默安装,可以尝试向安装命令添加特定开关表明已经接受了最终用户的许可协议(EULA),例如 `/S /AcceptEula` 或者 `--accept-license=yes` 这样的标志位取决于具体的应用程序支持哪些类型的参数[^5]。 ```bash installer.exe /silent /accepteula ``` 上述例子展示了一个典型的Windows平台上的静默安装方式及其附加参数的例子。 ##### 方法三:调整权限设置 验证正在使用的操作系统帐户确实拥有足够的权利去更改系统设置和写入注册表项等动作;必要时候切换至具有完全控制权的超级管理角色重新发起部署流程[^6]。 ##### 方法四:检查日志记录寻找更多线索 大多数现代安装工具都会生成详细的活动跟踪文档,在其中应该能够找到关于为什么拒绝推进的具体原因说明。定位这些日记位置并通过审查它们获取额外的信息有助于进一步诊断根本症结所在[^7]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值