#include <gsl/gsl_matrix.h>#include "gnn_node.h"Include dependency graph for gnn_weight.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| gnn_node * | gnn_weight_new (int input_size, int output_size) |
| Creates a new gnn_weight : Affine / Linear Transform layer. | |
| int | gnn_weight_init (gnn_node *node) |
| Initializes the layer's parameters. | |
| gsl_matrix * | gnn_weight_get_A (gnn_node *node) |
Gets the node's parameter matrix
. | |
| gsl_vector * | gnn_weight_get_B (gnn_node *node) |
Gets the node's parameter vector
. | |
| gsl_matrix * | gnn_weight_get_dA (gnn_node *node) |
Gets
. | |
| gsl_vector * | gnn_weight_get_dB (gnn_node *node) |
Gets
. | |
| gsl_matrix_int * | gnn_weight_get_Af (gnn_node *node) |
Gets the frozen flags for the matrix
. | |
| gsl_vector_int * | gnn_weight_get_Bf (gnn_node *node) |
Gets the frozen flags for the vector
. | |
| int | gnn_weight_connect (gnn_node *node, size_t i, size_t j, double strength) |
| Connect an input with an output. | |
| int | gnn_weight_disconnect (gnn_node *node, size_t i, size_t j) |
| Disconnect an input with an output. | |
| int | gnn_weight_connect_all (gnn_node *node, double strength) |
| Creates a full connection. | |
| int | gnn_weight_disconnect_all (gnn_node *node) |
| Disconnect all connections. | |
| int | gnn_weight_connect_input (gnn_node *node, size_t i, double strength) |
| Connects the i-th input to all outputs with given strength. | |
| int | gnn_weight_disconnect_input (gnn_node *node, size_t i) |
| Disconnect the i-th input from all outputs. | |
| int | gnn_weight_freeze_connection (gnn_node *node, size_t i, size_t j) |
| Freeze a connection. | |
| int | gnn_weight_unfreeze_connection (gnn_node *node, size_t i, size_t j) |
| Unfreeze a connection. | |
| int | gnn_weight_freeze_all_connections (gnn_node *node) |
| Freeze all connections. | |
| int | gnn_weight_unfreeze_all_connections (gnn_node *node) |
| Unfreeze all connections. | |
| int | gnn_weight_connect_bias (gnn_node *node, size_t j, double strength) |
| Connects a bias. | |
| int | gnn_weight_disconnect_bias (gnn_node *node, size_t j) |
| Disconnects a bias. | |
| int | gnn_weight_freeze_bias (gnn_node *node, size_t j) |
| Freeze a bias. | |
| int | gnn_weight_unfreeze_bias (gnn_node *node, size_t j) |
| Unfreeze a bias. | |
| int | gnn_weight_freeze_all_biases (gnn_node *node) |
| Freeze all biases. | |
| int | gnn_weight_unfreeze_all_biases (gnn_node *node) |
| Unfreeze all biases. | |
|
||||||||||||||||||||
|
Connects the i-th input to the j-th output with the given strength and unfreezes it.
Definition at line 594 of file gnn_weight.c. |
|
||||||||||||
|
Connects the all input to the outputs with the given strength. The connections will be unfrozen.
Definition at line 655 of file gnn_weight.c. |
|
||||||||||||||||
|
Connects the bias associated with the j-th output with the given strength. The value will be unfrozen.
Definition at line 907 of file gnn_weight.c. |
|
||||||||||||||||
|
Connects the input at index i to all outputs with the given strengh strength. The connections will be unfrozen.
Definition at line 714 of file gnn_weight.c. |
|
||||||||||||||||
|
Disconnects the i-th input to the j-th output. The weight will be frozen to 0.
Definition at line 625 of file gnn_weight.c. |
|
|
Disconnects all connections. The weights will be frozen to 0.
Definition at line 683 of file gnn_weight.c. |
|
||||||||||||
|
Disconnects the bias associated with the j-th output. The value will be frozen to 0.
Definition at line 937 of file gnn_weight.c. |
|
||||||||||||
|
Disconnects the i-th input from all outputs. The weights will be frozen to 0.
Definition at line 755 of file gnn_weight.c. |
|
|
Freezes all biases.
Definition at line 1077 of file gnn_weight.c. |
|
|
Freezes all the connections.
Definition at line 852 of file gnn_weight.c. |
|
||||||||||||
|
Freezes the bias associated to the j-th output.
Definition at line 1024 of file gnn_weight.c. |
|
||||||||||||||||
|
Freezes the connection from the i-th input to he j-th output.
Definition at line 797 of file gnn_weight.c. |
|
|
This function a pointer to the node's internal parameter matrix
Definition at line 431 of file gnn_weight.c. |
|
|
This function returns a pointer to the node's internal matrix frozen flags. Its values can be freely modified, but after changes are made, the gnn_node_local_update function should be called. Remember that these values should be binary, beeing either 0 (free) or 1 (frozen).
Definition at line 526 of file gnn_weight.c. |
|
|
This function a pointer to the node's internal parameter vector
Definition at line 454 of file gnn_weight.c. |
|
|
This function returns a pointer to the node's internal vector frozen flags. Its values can be freely modified, but after changes are made, the gnn_node_local_update function should be called. Remember that these values should be binary, beeing either 0 (free) or 1 (frozen).
Definition at line 550 of file gnn_weight.c. |
|
|
This function a pointer to the node's internal parameter matrix gradient
Definition at line 478 of file gnn_weight.c. |
|
|
This function a pointer to the node's internal parameter vector gradient
Definition at line 502 of file gnn_weight.c. |
|
|
This functions initializes the layer's parameters by values drawn from a uniform distribution with mean zero and standard deviation
to insure that each of the outputs Implementation Note: The numbers are generated by
where
Definition at line 383 of file gnn_weight.c. |
|
||||||||||||
|
This function creates a new gnn_node of gnn_weight : Affine / Linear Transform type.
Definition at line 296 of file gnn_weight.c. |
|
|
Unfreezes all biases.
Definition at line 1103 of file gnn_weight.c. |
|
|
Unfreezes all the connections.
Definition at line 878 of file gnn_weight.c. |
|
||||||||||||
|
Unfreezes the bias associated to the j-th output.
Definition at line 1051 of file gnn_weight.c. |
|
||||||||||||||||
|
Unfreezes the connection going from the i-th input to the j-th output.
Definition at line 826 of file gnn_weight.c. |
1.2.18