Rate this Page

Template Struct CppNode#

Inheritance Relationships#

Base Type#

Struct Documentation#

template<classT>
structCppNode:publictorch::autograd::Node#

Public Functions

virtualvariable_listapply(variable_list&&inputs)override#

Performs theNode’s actual operation.

virtualvoidrelease_variables()override#

Releases saved variables if the operation won’t be reused.

voidset_ctx_grad_fn(conststd::shared_ptr<Node>&node)#
voidsave_variables_to_ctx()#
inlinevirtualvoidcompiled_args(CompiledNodeArgs&args)constoverride#
inlinevirtualvariable_listapply_with_saved(constvariable_list&inputs,SwapSavedVariables&saved)override#

Public Members

AutogradContextctx_#
std::vector<bool>is_variable_input_#
std::vector<VariableInfo>input_info_#
std::vector<VariableInfo>output_info_#