Struct TraceableFunction
Defined in File function.h
Page Contents
Inheritance Relationships
Base Type
public torch::autograd::Node
(Struct Node)
Struct Documentation
-
struct TraceableFunction : public torch::autograd::Node
See Node::is_traceable() for definition.
Public Functions
-
inline virtual bool is_traceable() final
Returns true if this function is traceable.
An op is traceable if all operations happening within
apply()
are performed on autogradVariables
(i.e. apply mostly instantiates and applies other functions).
-
inline explicit Node(uint64_t sequence_nr, edge_list &&next_edges = edge_list())
Construct a new
Node
with the givennext_edges
-
Node(const Node &other) = delete
Nodes are neither copyable nor moveable.
-
Node(Node &&other) = delete
-
inline virtual bool is_traceable() final