models/dense_net.py
def process_kernel(self, kernel):
        """
        Process a given kernel's weights, returns the connection strength (CS)
        for that kernel (the mean of its absolute weights).

        Args:
            kernel: tensor, the kernel whose weights are processed.
        """
        # get an array representation of the kernel
        k_image = self.sess.run(kernel)
        # calculate its connection strength and return it
        k_cs = np.mean(np.abs(k_image))
        return k_cs

        Process a given kernel's weights, returns the connection strength (CS)
        for that kernel (the mean of its absolute weights).

        Args:
            kernel: tensor, the kernel whose weights are processed.
        
Process a given kernel's weights, returns the connection strength (CS)
for that kernel (the mean of its absolute weights).
Process a given kernel ' s weights returns the connection strength ( CS ) for that kernel ( the mean of its absolute weights ) .
def process_kernel(self, kernel):
        k_image = self.sess.run(kernel)
        k_cs = np.mean(np.abs(k_image))
        return k_cs
def process_kernel ( self , kernel ) : k_image = self . sess . run ( kernel ) k_cs = np . mean ( np . abs ( k_image ) ) return k_cs
Process a given kernel's weights, returns the connection strength (CS)
for that kernel (the mean of its absolute weights).
Process a given kernel ' s weights returns the connection strength ( CS ) for that kernel ( the mean of its absolute weights ) .
"""
        Process a given kernel's weights, returns the connection strength (CS)
        for that kernel (the mean of its absolute weights).

        Args:
            kernel: tensor, the kernel whose weights are processed.
        """ # get an array representation of the kernel # calculate its connection strength and return it
self
kernel
tensor, the kernel whose weights are processed.
tensor the kernel whose weights are processed .