示例#1
0
 protected virtual void CreateState(int index, NDArray weight)
 {
 }
示例#2
0
 private static NDArray DefaultMonitorFunc(NDArray x)
 {
     using (var op = new Operator("norm"))
         return(op.PushInput(x).Invoke()[0] / (float)Math.Sqrt(x.Size));
 }
示例#3
0
 public abstract void Update(int index, NDArray weight, NDArray grad);