fn
full_op
→TensorImplPtrint full_op(const int & shape, double fill_value, Dtype dt, Device device, bool requires_grad)Python wrappers
Public Python APIs implemented by this engine symbol.Create a tensor of the given shape filled with a constant scalar.
Parameters
shapeShapeDesired output shape.
fill_valuedoubleScalar value cast to
dt before filling.dtDtypeElement dtype.
deviceDeviceTarget device.
requires_gradboolAttach a fresh autograd leaf when true.
Returns
TensorImplPtrLeaf tensor whose every element equals fill_value (cast).