Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
AttributeError:该层从未被调用,因此没有定义的输入形状
我尝试通过创建三个类在 TensorFlow 2 0 中构建自动编码器 Encoder Decoder 和 AutoEncoder 由于我不想手动设置输入形状 因此我尝试从编码器的 input shape 推断解码器的输出形状 import
tensorflow
tfkeras
tensorflow20
如何将“实例键”添加到 keras 模型输入以在 gcloud ai-platform 中进行批量预测?
我正在尝试添加 键 以匹配 Google AI Platform 的批量预测输出 但是我的模型输入只允许一个输入 看起来像这样 input tf keras layers Input shape max len x tf keras lay
python
tensorflow
gcloud
分布式张量流中的并行进程
我有带有训练参数的张量流神经网络 它是代理的 策略 网络正在核心程序的主张量流会话的训练循环中进行更新 在每个训练周期结束时 我需要将该网络传递给几个并行进程 工作人员 这些进程将使用它来从代理策略与环境的交互中收集样本 我需要并行执行 因
tensorflow SavedModel - 如何迭代保存
我正在采用新的SavedModel据我所知 API 是 未来 应该优先于tf train Saver 我想要实现的目标是每次保存一个模型N批次数 我想最多保留 20 个已保存的模型 显然我可以自己监控这一点 但如果tf train Save
tensorflow
使用sklearn宏f1-score作为tensorflow.keras中的指标
我已经为tensorflow keras定义了自定义指标 以在每个时期之后计算宏f1分数 如下所示 from tensorflow import argmax as tf argmax from sklearn metric import
python
tensorflow
Keras
在 jupyter 中找不到 Tensorboard 作为魔法函数
我想使用最新的tensorflow 2 0 0a0在jupyter中运行tensorboard 使用tensorboard版本1 13 1和python 3 6 using tensorboard logdir logs base dir
python
tensorflow
tensorflow20
tensorboard
tensorflow2x
TensorFlow - 根据另一个变量的形状动态定义变量的形状
假设我有一定的张量x其维度未在图初始化时定义 我可以使用以下方法获得它的形状 x shape tf shape input x 现在 如果我想根据中定义的值创建一个变量x shape using y tf get variable vari
python
tensorflow
Blenderbot 微调
我一直在尝试微调 HuggingFace 的对话模型 Blendebot 我已经尝试过官方拥抱脸网站上给出的传统方法 该方法要求我们使用 trainer train 方法来完成此操作 我使用 compile 方法尝试了它 我尝试过使用 Py
python
tensorflow
NLP
Pytorch
huggingfacetransformers
如何使用 Keras 将图像文件夹转换为 X 和 Y 批次?
假设我有一个图像文件夹 例如 PetData Dog images Cat images 我如何将其转换为 x train y train x test y test 格式 我看到这种格式广泛用于 MNIST 数据集 如下所示 mnist
python
tensorflow
Keras
target_vocab_size 在方法 tfds.features.text.SubwordTextEncoder.build_from_corpus 中到底意味着什么?
根据这个链接 https www tensorflow org datasets api docs python tfds features text SubwordTextEncoder build from corpus target
python
tensorflow
NLP
使用稀疏张量计算梯度时,tensorflow给出nans
以下代码片段来自相当长的一段代码 但希望我可以提供所有必要的信息 y2 tf matmul y1 ymask dist tf norm ystar y2 轴 0 y1 和 y2 为 128x30 ymask 为 30x30 ystar 为
tensorflow
计算复合损失函数各部分的梯度范数
假设我有以下损失函数 loss a tf reduce mean my loss fn model output targets loss b tf reduce mean my other loss fn model output tar
tensorflow
Tensorflow 何时更新权重和偏差?
张量流什么时候更新for循环中的权重和偏差 下面是tf的github上的代码 mnist softmax py https github com tensorflow tensorflow blob master tensorflow ex
python
tensorflow
TensorFlow 数据集的函数 cache() 和 prefetch() 有何作用?
我正在关注 TensorFlow图像分割 https www tensorflow org tutorials images segmentation教程 其中有以下几行 train dataset train cache shuffle
tensorflow
caching
Dataset
tensorflowdatasets
Prefetch
在 Tensorboard 中获取简单的绘图
我正在尝试在张量板上画一个简单的图 就像他们在主页上一样 如下所示 To understand how this is working I ve wrote the following import tensorflow as tf imp
python
tensorflow
tensorboard
Tensorflow:tf.get_collection 未返回范围内的变量
我正在尝试获取变量范围内的所有变量 如所解释的here https stackoverflow com questions 36533723 tensorflow get all variables in scope 然而 该行tf get
python
tensorflow
导入错误:无法导入名称“transpose_shape”
我正在学习 Coursera Andrew Ng 的深度学习课程 使用 YOLO 算法进行对象检测 我尝试使用 Windows 和 Anaconda Navigator 在我的 PC 上运行该算法 我安装了 Keras 以在 TensorF
python
tensorflow
Keras
Anaconda
如何在 Mac 上安装支持 GPU 的 TensorFlow?
我的 MacBook Pro 没有 NVIDIA GPU 所以不可能运行CUDA 我想知道哪些早期版本的 TensorFlow 支持 Mac OS 的 GPU 我如何在 Anaconda 上安装 如上所述official https www
tensorflow
BERT - 池化输出与序列输出的第一个向量不同
我在 Tensorflow 中使用 BERT 有一个细节我不太明白 根据文档 https tfhub dev google bert uncased L 12 H 768 A 12 1 https tfhub dev google bert
tensorflow
Keras
deeplearning
NLP
如何将 .pb 文件转换为 .h5。 (张量流模型到keras)
我已经使用重新训练了我的模型tensorflow现在想使用keras以避免会话内容 我怎样才能转换 pb文件至 h5 import tensorflow as tf from tensorflow keras models import s
python
tensorflow
Keras
«
1
2
3
4
5
6
7
...100
»