All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nd4j.autodiff.samediff.VariableType Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.autodiff.samediff;

/**
 * An SDVarible may have different uses in a SameDiff graph - VariableType represents these different roles/uses.
*
* VARIABLE: an array of trainable parameters in the SameDiff instance. Must be floating point (to be trainable by backprop)
* CONSTANT: a fixed value that should not be modified during training/inference. May be replaced by the user.
* ARRAY: an intermediate array (ie., output of an op) that is not trainable and is usually not persisted. For example, activations.
* PLACEHOLDER: represents an array to be provided later. Your input features and labels are placeholders.
*
*
*
 * Type         Trainable   Gradients       Persisted       Workspaces      DataTypes
 * VARIABLE     Yes         Yes             Yes             No              Floating point only
 * CONSTANT     No          No              Yes             No              All
 * ARRAY        No          Yes             No              Yes             All
 * PLACEHOLDER  No          No              No              No              All
 * 
* */ public enum VariableType { VARIABLE, CONSTANT, ARRAY, PLACEHOLDER }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy