【2023 · CANN训练营第一季】昇腾AI入门课(TensorFlow)微认证考试

昇腾计算执行层,负责模型和算子的执行,提供运行时库(Runtim)、图执行器(Graph Executor)、数字视觉预处理(Digital Vision Pre-Processing, DVPP)、人工智能预处理(Artificial Intelligence Pre-Processing, AI

怎么看自己有没有安装tensorflow

如果您想检查计算机上是否已安装 TensorFlow,您可以尝试执行以下步骤:打开命令行终端。在命令行中输入 "python",然后按回车键,打开 Python 解释器。在 Python 解释器中,输入 "import tensorflow",然后按回车键。如果 TensorFlow 已安装,您将不

Python-np.expand_dims()

Python-np.expand_dims()用于扩展数组的维度。执行程序后注意观察中括号[ ]的位置和数量

【AI人工智能】如何使用Keras和TensorFlow来训练大型深度学习模型

Keras和TensorFlow都使用了动态图(Dynamic Graph)作为模型的表示。动态图允许模型在运行时进行修改,并且可以在编译时进行优化。Keras和TensorFlow都使用了神经网络模型的压缩和优化技术。例如,Keras的Transformer模型采用了一些针对压缩和优化的技术,例如

tensorflow如何使用gpu

tensorflow查看GPU的数量、使用GPU加速,单GPU模拟多GPU环境等

查看cudnn&cuda的版本以及对应的tensorflow版本

查看cudnn&cuda的版本以及对应的tensorflow版本

Google开源了可视化编程框架Visual Blocks for ML

Visual Blocks for ML是一个由Google开发的开源可视化编程框架。它使你能够在易于使用的无代码图形编辑器中创建ML管道。

解决AttributeError: module ‘keras‘ has no attribute ……

而博主不知道其中原因,原因其实是在TensorFlow 2.4及以上版本中,,它是Keras和TensorFlow的官方集成版本。这篇博客中博主有提到如何解决这一问题,其中就是要把。代码来检查一下你的tf和keras版本吧。的方式已经被弃用,取而代之的是。

nvidia显卡驱动、cuda、cudnn、tensorflow对应版本

在nvidia官网下载驱动,驱动官网选择设备的驱动进行搜索下载即可,搜索时注意对应的操作系统一般为安装NVIDIA Studio驱动版本,GeForce Game Ready适用于游戏玩家,下面是两个版本区别的官方解释下载完的驱动会以版本号的形式命名,这个版本号在安装cuda时候会用到,以下是下载好

深入浅出TensorFlow2函数——tf.rank

tf.rank(input, name=None)

【AI学习笔记】退出 Anaconda 虚拟环境时 遇到的两种报错。

两种错误:DeprecationWarning: 'deactivate' is deprecated & ArgumentError: deactivate does not accept arguments

深入浅出TensorFlow2函数——tf.exp

tf.exp( x, name=None)

新装的TensorFlow出现protobuf相关错误

今天刚装了个TensorFlow2.4,import tensorflow的时候,出现如下错误TypeError: Descriptors cannot not be created directly.If this call came from a _pb2.py file, your gener

深入浅出TensorFlow2函数——tf.random.uniform

tf.random.uniform( shape, minval=0, maxval=None, dtype=tf.dtypes.float32, seed=None, name=None)

深入浅出TensorFlow2函数——tf.data.Dataset.from_tensor_slices

from_tensor_slices( tensors, name=None)

深入浅出TensorFlow2函数——tf.constant

tf.constant( value, dtype=None, shape=None, name='Const')

深入浅出TensorFlow2函数——tf.random.poisson

tf.random.poisson(shape,lam,dtype=tf.dtypes.float32,seed=None, name=None)

深入浅出TensorFlow2函数——tf.math.exp

tf.math.exp( x, name=None)

深入浅出TensorFlow2函数——tf.Tensor

一个tf.Tensor表示一个多维数组。在编写TensorFlow程序时,被操作和传递的主要对象就是tf.Tensor。