cost 309 ms
TensorFlow SavedModel output output 在使用 BigQuery ML 加载 model 时没有尺寸 - TensorFlow SavedModel output output had no dimensions when loading a model with BigQuery ML

我正在尝试使用 BigQuery ML 加载已保存的 tensorflow model 来进行预测。 但是,当我运行读取 GCS 中保存的 model 的查询时,出现以下错误: TensorFlow SavedModel output output had no dimensions, which ...

模块“tensorflow.tools.docs.doc_controls”没有属性“inheritable_header” - Module 'tensorflow.tools.docs.doc_controls' has no attribute 'inheritable_header'

今天从 tensorflow 运行估计器并想出了这个错误,知道如何解决吗? 这是在我的 estimator.py 文件中:@doc_controls.inheritable_header(""" 警告:不建议将估算器用于新代码。 估算器运行v1.Session样式的代码,该代码更难正确编写,并且可 ...

转换为 Tensorflow Lite 时出现 tf.ParseExampleV2 的问题:“op 既不是自定义操作也不是弹性操作” - Issue with tf.ParseExampleV2 when converting to Tensorflow Lite : “op is neither a custom op nor a flex op”

原谅我的英语。 我一直在尝试处理 tensorflow (v2.x) 的 Estimators API,但是当我尝试将 model 从此代码 tf.estimators 转换为 我收到以下错误: 互联网上的一些人已经提议在converter.experimental_new_converter = ...

将 Tensorflow 估计器与数据集 API 一起使用会导致奇怪的步数行为 - Using Tensorflow Estimators with Dataset API results in strange steps behavior

我面临一些关于 Tensorflow 的 Estimator 和 Dataset API 的训练循环行为的问题。 代码如下( tf2.3 ): NUM_EXAMPLES = X_train.shape[0] # dataset has 8000 elements BATCH_SIZE = NUM_E ...

从检查点创建 Estimator 并保存为 SavedModel,无需进一步训练 - Create Estimator from checkpoint and save as SavedModel without further training

我从 TF Slim Re.net V2 检查点创建了一个 Estimator 并对其进行了测试以进行预测。 我所做的主要事情基本上类似于普通的 Estimator 和 assign_from_checkpoint_fn: 为了将估算器导出为 SavedModel,我制作了一个 serving_in ...

tf.data,用不同的数据构造一个批次? - tf.data, construct a batch with different data?

我想使用tf.data构造一批批大小为 16 的数据,其中[:8]是一种数据 A, [8:16]是一种数据 B。 没有tf.data很容易做到。 如果使用tf.data ,代码可能是: 接下来怎么做? 我尝试: 但concatenate是: dataA整个数据集dataB到 dataA 的末尾。 ...

Tensorflow 2:使用自定义层和 tf.map_fn 构建估计器 - Tensorflow 2: building an estimator with custom layer and tf.map_fn

我正在尝试从自定义 Keras model 构建 TensorFlow2 估计器。 model 将形状为 [batch_size, n, h, w, c] 的张量作为输入。 我需要从后面对每个 [n, h, w, c] 张量应用 CNN。 为此,我正在使用 tf.map_fn: 当我编译 mode ...

TensorFlow1.15,Estimator的input_fn的内部逻辑? 还是MirroredStrategy的内在逻辑? - TensorFlow1.15, the inner logic of Estimator's input_fn? Or the inner logic of MirroredStrategy?

我在一台机器上用 4 个 GPU 预训练 BERT,而不是 1 个 GPU。 对于每个训练步骤,我想知道input_fn是给 1 个 GPU 1 个批次还是给 4 个 GPU 1 个批次。 镜像策略代码: input_fn代码: 其他代码: 如果input_fn给 1 GPU 1 batch,那 ...

InvalidArgumentError:reshape 的输入是一个值为 0 的张量,但请求的形状有 54912 - InvalidArgumentError: Input to reshape is a tensor with 0 values, but the requested shape has 54912

非常初学者的问题,我希望没问题我正在尝试使用 MAPS 数据集从 GitHub 训练这个model ,并且我使用此代码为火车组制作了 new.tfrecords。 它基于此处的代码,但我更改了一些内容以便为不同的输入让路(另一个 MIDI 文件,我只是称之为“tempo MIDI”)。 使用 tf ...

TensorFlow 2.1 使用 TPUEstimator:RuntimeError:从 TPU 输出的所有张量都应保留批量大小维度,但得到标量张量 - TensorFlow 2.1 using TPUEstimator: RuntimeError: All tensors outfed from TPU should preserve batch size dimension, but got scalar Tensor

我刚刚将一个现有项目从 TF 1.14 转换为使用 TPUEstimator API 的 TF 2.1。 进行转换后,本地测试(即use_tpu=False )成功运行。 但是,在 Google Cloud TPU 上运行时出现错误(即use_tpu=True )。 注意:这是在 AdaNet Au ...

TensorFlow1.15,多GPU-1-machine,batch_size怎么设置? - TensorFlow1.15, multi-GPU-1-machine, how to set batch_size?

我在一台机器上用 4 个 GPU 预训练 BERT。 输入 function 代码: 镜像策略代码: 问题是我有 4 个 GPU。 每个 GPU 最多可以运行 8 个批大小。 我设置train_batch_size = 8而不是 32。可以,但我不知道每个 GPU 在一个训练步骤中获得不同的数据。 ...

Tensorflow Estimator 在每次调用 predict 时给出不同的预测结果 - Tensorflow Estimator gives different prediction result on each call of predict

我使用 TF Estimators 为我自己的数据集训练了一个分类器,但是在每次预测调用之后,我都会得到不同的预测结果。 我检查了数据集,数据示例顺序没问题,每个预测调用都一样,但是 model 会给出不同的分类结果。 我很困惑,不知道我做错了什么。 这是我读取输入的代码: 预测代码: ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM