(value bool)
| 20 | type OptionsFunc func(opt *Options) |
| 21 | |
| 22 | func WithGrad(value bool) OptionsFunc { |
| 23 | return func(opts *Options) { |
| 24 | opts.RequiresGrad = value |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func WithShape(shape ...int) OptionsFunc { |
| 29 | return func(opts *Options) { |
no outgoing calls