fn
assign_inplace_op
→TensorImplPtrint assign_inplace_op(const int & a, const int & value, const int & name)Writes value into a in place, the way the ops above take their own results: into a's buffer (TensorImpl::write_through), then into value's place in the autograd graph, or out of it when value has none. For a tensor with live views, whose values have to land where the views read them.
Parameters
aTensorImplPtrA dense CPU tensor with live views.
valueTensorImplPtrThe new contents; same shape and dtype as
a.namestd::stringOp name for error messages.
Returns
TensorImplPtrThe same pointer as a.