%% 3-D Residual Network with Custom Stack Depth
% Create a 3-D ResNet-101 network using a custom stack depth.

imageSize = [224 224 64 3];
numClasses = 10;

stackDepth = [3 4 23 3];
numFilters = [64 128 256 512];

lgraph = resnet3dLayers(imageSize,numClasses, ...
    StackDepth=stackDepth, ...
    NumFilters=numFilters)

% Analyze the network.

analyzeNetwork(lgraph)

% Copyright 2021 The MathWorks, Inc.