Class Layer


  • public class Layer
    extends Object
    Represents a layer.
    Author:
    poirigui
    • Constructor Detail

    • Method Detail

      • getEncodingType

        public String getEncodingType()
      • getPath

        public String getPath()
        Indicate where this layer is located relative to the H5 file.

        This is either X or layers/{layerName}.

      • getType

        public String getType()
        Get the encoding type of this layer.

        Layers are either dense or sparse, use isSparse() or isDense() to verify that.

      • isSparse

        public boolean isSparse()
        Check if the matrix encoded in this layer is sparse.
      • isDense

        public boolean isDense()
        Check if the matrix encoded in this layer is dense.
      • getMatrix

        public Matrix getMatrix()
        Obtain the matrix encoded in this layer.
      • getSparseMatrix

        public SparseMatrix getSparseMatrix()
        Obtain the sparse matrix encoded in this layer.
      • getDenseMatrix

        public DenseMatrix getDenseMatrix()
        Obtain the dense matrix encoded in this layer.