class Gradnite::Node
- Gradnite::Node
- Reference
- Object
Defined in:
gradnite/gradnite.crConstructors
- .new(value : Float64, _children : Array(Gradnite::Node) = [] of Node, _op : String = "", label : String = "")
- .zero : Node
Instance Method Summary
- #*(other : Node | Float64)
- #**(other : Int64 | Float64)
- #+(other : Node | Float64)
- #-(other : Node | Float64)
- #/(other : Node)
- #_backward : Proc(Nil)
- #_backward=(_backward : Proc(Nil))
- #_children : Array(Gradnite::Node)
- #_children=(_children : Array(Gradnite::Node))
- #_op : String
- #_op=(_op : String)
- #_prev : Array(Gradnite::Node)
- #_prev=(_prev : Array(Gradnite::Node))
- #backward
- #exp
- #grad : Float64
- #grad=(grad : Float64)
- #id : String
- #id=(id : String)
- #label : String
- #label=(label : String)
- #tanh
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #value : Float64
- #value=(value : Float64)
Constructor Detail
def self.new(value : Float64, _children : Array(Gradnite::Node) = [] of Node, _op : String = "", label : String = "")
#
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
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>