DL4J中文文件 模型 卷積

2021-08-31 01:12:07 字數 3554 閱讀 8703

神經網路配置中的每一層表示隱藏單元的單元。當層堆疊在一起時,它們代表了乙個深度神經網路。

[原始碼]

一維卷積層。形狀期望的輸入啟用[小批量,通道,序列長度]

[原始碼]

二維卷積層

[原始碼]

三維卷積層配置

hasbias

public boolean hasbias()
乙個可選的資料格式:「ndhwc」,「ncdhw」。預設為「ncdhw」。輸入和輸出資料的資料格式。該格式可以是「ncdhw」,資料儲存順序為: [batchsize, inputchannels, inputdepth, inputheight, inputwidth]。或者,格式為「ndhwc」,資料按以下順序儲存:[batchsize、inputdepth、inputheight、inputwidth、inputchannels]。

kernelsize

public builder kernelsize(int... kernelsize)
在深度、高度、寬度上設定三維卷積的核心大小

stride

public builder stride(int... stride)
按(深度、高度、寬度)順序設定三維卷積的步長

padding

public builder padding(int... padding)
按(深度、高度、寬度)順序設定三維卷積的填充大小

dilation

public builder dilation(int... dilation)
按深度、高度、寬度設定三維卷積膨脹尺寸

[原始碼]

二維反卷積配置

反卷積也被稱為轉置卷積或分數階卷積。在本質上,反卷積把常規的2d卷積與前向和反向傳播作交換。

詳見matt zeiler的**: 

有關卷積運算和形狀的直觀指南,請參見:

hasbias

public boolean hasbias()
輸入層中的二維反卷積層nin是通道的數目nout是在網路中使用的過濾器的數目,換句話說,是通道的數目。構建器指定過濾器/核心大小、步長和填充。池化層使用核大小。

convolutionmode

public builder convolutionmode(convolutionmode convolutionmode)
為卷積層設定卷積模式。詳見  

kernelsize

public builder kernelsize(int... kernelsize)
卷積大小 行/列

[原始碼]

二維深度卷積層結構。

執行通道卷積,分別在每個輸入對映上操作。通道乘法器用於指定每個輸入對映的輸出數。這個卷積是用指定的核心大小、步幅和填充值進行的。

depthmultiplier

public builder depthmultiplier(int depthmultiplier)
為深度卷積設定通道乘法器

kernelsize

public builder kernelsize(int... kernelsize)
卷積大小 行/列

stride

public builder stride(int... stride)
行/列(高度/寬度)維長的卷積步幅

padding

public builder padding(int... padding)
行/列(高度/寬度)維度的卷積填充

[原始碼]

二維可分離卷積配置。

可分離卷積將乙個正規卷積操作分成兩個更簡單的操作,這兩個操作通常在計算上更有效。

可分離卷積的第一步是通道卷積,它分別在每個輸入對映上操作。在這個步驟中,使用通道乘法器來指定每個輸入對映的輸出數。這個卷積是用指定的核心大小、步幅和填充值進行的。

第二步是逐點運算,其中通過使用1x1卷積,將通道式卷積的中間輸出對映到所需的特徵對映的數量。

鏈結這兩個操作的結果將導致與標準二維卷積操作相同的形狀的張量。

hasbias

public boolean hasbias()
輸入層中的separableconvolution2d層的nin是通道的數目,nout是在網路中使用的過濾器的數目,換句話說,是通道的數目。構建器指定過濾器/核心大小、步長和填充。池化層使用核大小。

constrainpointwise

public builder constrainpointwise(layerconstraint... constraints)
set channels multiplier of channels-wise step in separable convolution 在可分離卷積中設定通道步驟的通道乘法器

kernelsize

public builder kernelsize(int... kernelsize)
卷積行/列的大小(高度/寬度)

stride

public builder stride(int... stride)
卷積行/列(高度/寬度)的步幅

padding

public builder padding(int... padding)
填充-行/列(高度/寬度)

[原始碼]

一維卷積神經網路的裁剪層。允許為頂部/底部 分開裁剪。

getoutputtype

public inputtype getoutputtype(int layerindex, inputtype inputtype)
build

public cropping1d build()
[原始碼]

二維卷積神經網路的裁剪層。允許分開裁剪頂部/底部/左側/右側

getoutputtype

public inputtype getoutputtype(int layerindex, inputtype inputtype)
build

public cropping2d build()
[原始碼]

三維卷積神經網路的裁剪層。允許為深度的上限和下限,高度和寬度維度進行單**剪。

getoutputtype

public inputtype getoutputtype(int layerindex, inputtype inputtype)
build

public cropping3d build()

DL4J中文文件 模型 頂點

在eclipse dl4j中,頂點是在計算圖中充當節點的一種層。它可以接受多個輸入,提供多個輸出,並且可以幫助構建流行的網路,如inceptionv4。原始碼 l2normalizevertex 在單個輸入上執行l2歸一化。原始碼 l2vertex 計算兩個輸入的l2最小二乘誤差。例如,在三重嵌入中...

DL4J中文文件 模型 啟用

graphbuilder graphbuilder new neuralnetconfiguration.builder 新增超引數和其他層 addlayer softmax new activationlayer activation.softmax previous input 新增更多的層和輸...

DL4J中文文件 Keras模型匯入 本地層

原始碼 從keras匯入一維本地連線層。keraslocallyconnected1d public keraslocallyconnected1d integer kerasversion throws unsupportedkerasconfigurationexception從keraslay...