ヘルプ センターヘルプ センター
層グラフへの層の追加
newlgraph = addLayers(lgraph,larray)
例
newlgraph= addLayers(lgraph,larray)は、larrayのネットワーク層を層グラフlgraphに追加します。新しい層グラフnewlgraphには、lgraphの層および結合と共に、順に結合されたlarrayの層が含まれます。larrayに含まれる層の名前は一意であり、空ではなく、lgraphに含まれる層の名前とは異なる名前でなくてはなりません。
newlgraph= addLayers(lgraph,larray)
newlgraph
lgraph
larray
すべて折りたたむ
空の層グラフと層の配列を作成します。層グラフに層を追加し、グラフをプロットします。addLayersによって層が順に結合されます。
addLayers
lgraph = layerGraph; layers = [ imageInputLayer([32 32 3],“名字”,“输入”) convolution2dLayer(3,16,'Padding','same',“名字”,'conv_1') batchNormalizationLayer(“名字”,'BN_1') reluLayer(“名字”,'relu_1')]; lgraph = addLayers(lgraph,layers); figure plot(lgraph)
LayerGraph
層グラフ。LayerGraphオブジェクトとして指定します。層グラフを作成するには、layerGraphを使用します。
layerGraph
Layer
ネットワーク層。Layer配列として指定します。
組み込まれている層の一覧については、深層学習層の一覧を参照してください。
出力層グラフ。LayerGraphオブジェクトとして返されます。
layerGraph|removeLayers|connectLayers|disconnectLayers|plot|assembleNetwork|replaceLayer
removeLayers
connectLayers
disconnectLayers
plot
assembleNetwork
replaceLayer
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office