cost 287 ms
如何通过终端将 ubuntu 上的 python3.8.10 降级到 3.5.6? - how to downgrade python3.8.10 to 3.5.6 on ubuntu via the terminal?

为了安装旧版本的 keras,需要 tensorflow 1.10.0。 这应该可以解决我正在尝试运行的算法的兼容性问题。 能够安装这些旧版本的 tensorflow 和 keras 以及旧版本的 python 是必需的。 我尝试使用我的 linux 系统、终端使用不同的算法,但到目前为止还没有成 ...

等同于 tensorflow 2 升级后的 tf.contrib.legacy_seq2seq.attention_decoder - Equivalent of tf.contrib.legacy_seq2seq.attention_decoder in tensorflow 2 after upgrade

我在 TensorFlow 1.0 中有以下代码。 我尝试使用 tf_upgrade_v2 脚本将它迁移到 TensorFlow 2.0。 但是,它没有在 tf-2 精简版中找到等效的 function。 我被推荐使用 tensorflow_addons。 但是,我在 tf_addons 模块中没 ...

batch size > 1 使用 TensorFlow 1.x 给出错误 - batch size > 1 gives an error using TensorFlow 1.x

我正在使用这个VAE 示例。 我所做的唯一区别是将损失从二元交叉熵更改为 MSE,如下所示: 在运行原始架构时,model 运行完美(2 个 MLP 层),无论批次大小如何(在 github 代码中指定为“无”)。 我试图将其更改为卷积 model,但是当我仅将编码器更改为此时: 运行 model ...

tf==1.15 的 tensorflowjs 兼容版本,用于 tf_saved_model 到 tfjs 的转换 - tensorflowjs compatible version for tf==1.15 for tf_saved_model to tfjs conversion

我在tensorflow训练了一个object检测model。 我的环境-- tf 版本 == 1.15,.network== ssd mobi.net v2 现在我想将我的 saved_model(.pb) 文件转换为 tfjs(.json) 格式。 我按照以下步骤操作—— pip 安装 ten ...

TypeError:由于 tensor_scatter_update 而预期单个张量时的张量列表 - TypeError: List of Tensors when single Tensor expected due to tensor_scatter_update

看看下面的代码示例: 我用一个简单的案例来描述我面临的问题这个 function (myFun) 被称为 tf.while_loop 的主体(如果相关) my_tensor 的定义 如何定义 tf.tensor_scatter_update 的 indices 参数? 我正在使用 tensorflo ...

在 tensorflow 1.15 中,使用显式 XLA 编译和自动集群有什么区别? - In tensorflow 1.15, what's the difference of using explicit XLA compilation and Auto-clustering?

我正在尝试学习如何将 XLA 用于我的模型。 我在这里查看官方文档:https://www.tensorflow.org/xla#enable_xla_for_tensorflow_models 。 据记载,有两种方法可以启用 XLA:1) 使用@tf.function(jit_compile=T ...

AttributeError:模块“tensorflow.compat.v2”没有属性“depth_to_space” - AttributeError: module 'tensorflow.compat.v2' has no attribute 'depth_to_space'

我正在尝试运行一个代码,它是用 tensorflow 版本 1.4.0 编写的我在 google colab 上运行我的代码,它给出了 tensorflow 版本 2.x。 为了运行我的代码,我使用了向后兼容性,例如:将import tensorflow as tf替换为 它适用于某些事情,但在某 ...

如何将 TensorFlow 检查点文件转换为 TensorFlowJS? - How to convert TensorFlow checkpoint files to TensorFlowJS?

我认为我有一个在 TensorFlow v1 上开发的项目。 它在 Python 3.8 中工作,如下所示: 检查点文件位于“checkpoint_dir”中我想将它与 TFjs 一起使用,但我不知道如何将检查点文件转换为可以用 TFjs 加载的东西。 我应该怎么办? 谢谢, 约翰 ...

Tensorflow1 和 Tensorflow2 中的批处理 - Batching in Tensorflow1 and Tensorflow2

我正在尝试将图像单应性代码从版本 TF1 转换为 TF2,只是 TF 脚本转换在这里不起作用。 我坚持对数据集进行批处理,因为图像、image_patch 和 image_Indices 具有不同的形状。 虽然 TF1 在摄取和批处理数据集包方面没有问题,但 TF2 却遇到了麻烦。imgs= np. ...


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