fn
full_like_op
→TensorImplPtrint full_like_op(const int & a, double fill_value, bool requires_grad)Python wrappers
Public Python APIs implemented by this engine symbol.Create a constant-filled tensor matching a in shape, dtype, and device.
Parameters
aTensorImplPtrTensor whose metadata is mirrored.
fill_ valuedoubleScalar value cast to
a.dtype() before filling.requires_ gradboolAttach a fresh autograd leaf when true.
Returns
TensorImplPtrNew leaf tensor with constant content.