Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
GradienTape 收敛速度比 Keras.model.fit 慢得多
我目前正在努力掌握TF2 0api 但正如我比较的渐变带 https www tensorflow org tutorials quickstart advanced到一个常规的keras 模型 fit我注意到 它运行速度较慢 可能是由于急
python
tensorflow
Keras
tensorflow20
如何安装最新版本的 TensorFlow 2?
我想知道为什么我无法安装TensorFlow 2 0 0 到目前为止稳定版本在他们的官方网站上 https www tensorflow org versions even in PyPi https pypi org project te
python
tensorflow
pip
ubuntu1604
tensorflow20
使用什么机器实例在 Google Cloud Platform 中运行 GPU 工作负载 [关闭]
Closed 这个问题是基于意见的 help closed questions 目前不接受答案 我正在尝试运行 Elasticsearch BERT 应用程序 并想了解使用 GPU 微调模型的最小配置 我应该使用什么机器配置 参考githu
googlecloudplatform
NLP
Pytorch
tensorflow20
如何在 tf.keras 中创建具有多个输出的回归模型?
我正在尝试训练回归模型来预测音乐的属性 例如 BPM 该模型接收 256x128px png 文件的音频片段频谱图 并输出几个连续值 到目前为止 我有以下代码是我基于以下代码开发的本指南 https www tensorflow org a
python
tensorflow
Keras
tensorflow20
tfkeras
无法理解tensorflow keras层中“build”方法的行为(tf.keras.layers.Layer)
张量流keras中的层有一个方法build它用于将权重创建推迟到您了解输入内容的时间 图层的构建方法 https www tensorflow org api docs python tf keras layers Layer build
tensorflow
Keras
tensorflow20
keraslayer
tfkeras
将 PNG 文件加载到 TensorFlow 中
我正在尝试加载我生成的定制 png 文件来训练我的模型 遵循 TensorFlow 指南的说明here https www tensorflow org guide data 我使用了这段代码 import tensorflow as tf
python
tensorflow
tensorflow20
tensorflowdatasets
如何解决tensorflow.python.framework.errors_impl.InvalidArgumentError?
import tensorflow as tf import numpy as np from sklearn model selection import train test split np random seed 4213 data
python
tensorflow
tensorflow20
错误:目录“.”无法安装。找不到“setup.py”和“pyproject.toml”
我正在尝试运行下面的文件https colab research google com github tensorflow models blob master research object detection colab tutoria
googlecolaboratory
tensorflow20
objectdetectionapi
TensorFlow 2.0:如何更新张量?
在 TensorFlow 1 x 中 要更新张量 我会使用tf scatter update 仅更新张量的相关部分 我们如何在 TF 2 0 中做同样的事情 您可以使用tf tensor scatter nd update https ww
python
tensorflow
tensorflow20
Tensorflow:如何提取用于绘图的attention_scores?
如果 Keras 中有一个 MultiHeadAttention 层 那么它可以返回注意力分数 如下所示 x attention scores MultiHeadAttention 1 10 10 x return attention sc
python
tensorflow
machinelearning
Keras
tensorflow20
如何使用tensorflow 2.0将图形写入tensorboard?
我正在做这个 eager on tf summary trace on graph True profiler True tf summary trace export stuff step 1 profiler outdir output
tensorflow
tensorboard
tensorflow20
使用 sklearn 通过 Keras 数据生成器绘制混淆矩阵
Sklearn 明确定义了如何使用自己的分类模型绘制混淆矩阵plot confusion matrix https scikit learn org stable auto examples model selection plot con
python
Keras
scikitlearn
tensorflow20
Keras 中的自定义损失函数应该为批次返回单个损失值,还是为训练批次中的每个样本返回一系列损失?
我正在学习tensorflow 2 3 中的keras API 在这个guide https www tensorflow org guide keras train and evaluate custom losses在tensorflo
tensorflow
machinelearning
Keras
tensorflow20
lossfunction
TensorFlow Lite 无法识别操作 VarHandleOp
我正在尝试将 TF 模型转换为 TFLite 模型保存在 pb格式 我已使用以下代码对其进行了转换 import os import tensorflow as tf from tensorflow core protobuf import
python
tensorflow
tensorflow20
TensorFlowLite
Tensorflow 2.0:无法导入 tf.keras.utils.conv_utils
我在用着张量流 v2 1 0这是从源代码编译的 我如何导入任何函数conv utils模块 例如 convert data format conv output length normalize tuple etc 我想创建自己的卷积 池化
python
Keras
tensorflow20
如何在张量流中使用相同的权重进行初始化?
我正在使用张量流构建 CNN 模型 我想知道是否可以以某种方式设置权重初始化的种子 以便能够在各处拥有相同的种子 以便我可以在模型的不同架构之间进行比较 在堆栈溢出上找到了这样的答案张量流权重初始化 https stackoverflow
python
tensorflow
neuralnetwork
convneuralnetwork
tensorflow20
检查目标时出错:预期dense_Dense2具有形状x,但得到形状为y的数组
这是我在张量流中迈出的第一步 Idea 有一些数字模式 数字数组 Pattern number 以及与该模式对应的类别 从0到2的数字 Category 0 1 2 我遵循结构数据 xs Pattern ys Category 例如 xs
tensorflow
tensorflow20
tensorflowjs
ImportError:无法从“tensorflow.python.profiler”导入名称“trace”
我正在尝试在 Tensorflow 上运行对象检测训练 一切都工作正常 直到我开始在这里训练网络 python C RealTimeObjectDetection main Tensorflow models research object
python
python3x
tensorflow
neuralnetwork
tensorflow20
图执行模式下张量流 tf.data 数据集的分割示例
Goal 我有一个tf data Dataset其中一些示例太长 0 轴的尺寸太大 我想将这些过长的示例分成几个示例 其中每个示例都是原始示例的一部分 如果特定示例不能被所需的块大小整除 我想截断余数 例如 如果原始数据集的 numpy 视
python
tensorflow
tensorflow20
tensorflowdatasets
具有字符串输入的 Tensorflow 数据集不保留数据类型
All 可重现的下面的代码在 Google Colab 上使用 TF 2 2 0 rc2 运行 改编简单的例子文档 https www tensorflow org api docs python tf data Dataset用于从简单的
NumPy
tensorflow
tensorflow20
tensorflowdatasets
«
1
2
3
4
5
6
7
»