How to know where a class and its members are located ?

1 次查看(过去 30 天)
How do I locate where this file / function is ? dagnn
% Add softmax loss layer.
pFc8 = (arrayfun(@(a) strcmp(a.name, 'predcls'), net.layers)==1);
net.addLayer('losscls',dagnn.Loss(), ...
{net.layers(pFc8).outputs{1},'label'}, ...
'losscls',{});
I want to specifically know the classes it has like dagnn.Loss(). I tried which dagnn which does not work but help dagnn works. Why does which dagnn not work ? help dagnn works but it does not tell me everything.
>> help dagnn
Contents of dagnn:
dagnn - Directed acyclic graph neural network
AffineGridGenerator - dagnn.AFFINEGRIDGENERATIOR Generate an affine grid for bilinear resampling
BilinearSampler - Wrapper for BilinearSampler block:
Crop - DagNN cropping layer.
ElementWise - DagNN layers that operate at individual spatial locations
Layer - Base class for a network layer in a DagNN
Sum - DagNN sum layer
UniformScalingGridGenerator - dagnn.UNIFORMSCALINGGRIDGENERATOR Generate an iso-tropic scaling + translation

采纳的回答

Walter Roberson
Walter Roberson 2016-12-8
  2 个评论
RuiQi
RuiQi 2016-12-8
编辑:RuiQi 2016-12-8
Thanks ! I am aware of that but the website doesn't tell me anything about the function. I want to read the code in dagnn and its members.. And i'd like to know where it is stored. Im not sure why 'which' is not telling me where its stored at
RuiQi
RuiQi 2016-12-8
Ok so I just learnt something today. It turns out the classes were 'package folders' so I should read up on it first https://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by