Exemple #1
0
 /// <summary>
 /// Records that `variable` was accessed for the tape and FuncGraph.
 /// </summary>
 void variable_accessed(BaseResourceVariable variable)
 {
     if (variable.trainable)
     {
         Tape.variable_accessed(variable as ResourceVariable);
     }
 }
 /// <summary>
 /// Records that `variable` was accessed for the tape and FuncGraph.
 /// </summary>
 void variable_accessed(BaseResourceVariable variable)
 {
     if (variable.trainable)
     {
         ; // tape.variable_accessed(variable)
     }
 }
 /// <summary>
 /// Records that `variable` was accessed for the tape and FuncGraph.
 /// </summary>
 void variable_accessed(BaseResourceVariable variable)
 {
     if (variable.trainable)
     {
         foreach (var tape in tf.GetTapeSet())
         {
             tape.VariableAccessed(variable as ResourceVariable);
         }
     }
 }