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.