variable

a helper function to create variable object from slice

  1. auto variable(Sl sl, bool requiresGrad)
    variable
    (
    Sl
    )
    (
    Sl sl
    ,
    bool requiresGrad = false
    )
    if (
    isSlice!Sl
    )
  2. auto variable(T x)
  3. auto variable(A a, bool requiresGrad)

Meta