Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
RuiQi
RuiQi el 8 de Dic. de 2016
Comentada: RuiQi el 8 de Dic. de 2016
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Dic. de 2016
  2 comentarios
RuiQi
RuiQi el 8 de Dic. de 2016
Editada: RuiQi el 8 de Dic. de 2016
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 el 8 de Dic. de 2016
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by