cost 429 ms
Tensorflow 無法從工作代碼中創建簽名

[英]Tensorflow fails to create Autograph out a working piece of code

操作系統平台和發行版:ubuntu 20.04 TensorFlow 版本:2.1.0 Python版本:3.7.6 我想寫一個簡單的層,可以在 tf.experiment.make_csv_dataset 的 output 上工作,我可以用批量平均值來估算數字 dtypes 中的缺失值,保持在 ...

在tf.contrib.layers中分配權重時,是否有constant_initializer的替代方法

[英]Are there alternatives to constant_initializer when assigning weights in tf.contrib.layers

我想將權重傳遞給tensorflow.contrib.layers.conv2d 。 圖層具有參數weights_initializer 。 當通過weights_initializer=tf.constant_initializer(tensor)傳遞張量時,張量weights_initi ...

與普通圖層不同,Keras自定義圖層不返回權重

[英]Keras custom layer not returning weights, unlike normal layer

我試圖獲得圖層的權重。 當使用keras層並且輸入連接到它時,它似乎正常工作。 但是,在將其包裝到我的自定義圖層時,這不再起作用。 這是一個錯誤還是我錯過了什么? 編輯:注意事項: 我讀到可以在自定義層的build()中定義可訓練變量。 但是,由於自定義圖層由keras圖層D ...

如何在MNIST上使用tf.contrib.model_pruning?

[英]How to use tf.contrib.model_pruning on MNIST?

我正在努力使用Tensorflow的修剪庫並且沒有找到許多有用的示例,因此我正在尋找幫助來修剪在MNIST數據集上訓練的簡單模型。 如果有人可以幫助解決我的嘗試或提供如何在MNIST上使用該庫的示例,我將非常感激。 我的代碼的前半部分是相當標准的,除了我的模型有2個隱藏層300個單位寬使 ...

如何在tf.layers模塊中使用TensorBoard和摘要操作

[英]How to use TensorBoard and summary operations with the tf.layers module

我已經按照TensorFlow Layers教程使用TensorFlow的tf.layers模塊為MNIST數字分類創建CNN。 現在,我正在嘗試從TensorBoard:Visualization Learning中學習如何使用TensorBoard。 也許該教程最近沒有更新,因為它說它的 ...

使用tf.layers時可替代arg_scope

[英]Alternative to arg_scope when using tf.layers

我重寫tf.contrib.slim.nets.inception_v3使用tf.layers 。 不幸的是,新的tf.layers模塊不適用於arg_scope ,因為它沒有必要的裝飾器。 是否有更好的機制可以用來設置圖層的默認參數? 還是我應該在每個圖層上添加適當的參數並刪除arg_s ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM