Gradnite::Node
Inherits Reference < Object
Constructors
new(value : Float64, _children : Array(Gradnite::Node) = [] of Node, _op : String = "", label : String = "")
Sourcezero
SourceInstance methods
*(other : Node | Float64)
Source**(other : Int64 | Float64)
Source+(other : Node | Float64)
Source-(other : Node | Float64)
Source/(other : Node)
Source_backward
Source_backward=(_backward : Proc(Nil))
Source_children
Source_op
Source_op=(_op : String)
Source_prev
Sourcebackward
Sourceexp
Sourcegrad
Sourcegrad=(grad : Float64)
Sourceid
Sourceid=(id : String)
Sourcelabel
Sourcelabel=(label : String)
Sourcetanh
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
value
Sourcevalue=(value : Float64)
Source