giagrad.Tensor.constant# Tensor.constant(fill_value) → Tensor[source]# Fills tensor data with a constant value. Parameters: fill_value¶ (float) – The value to fill the tensor with. Examples >>> Tensor.empty(2, 3).constant(2.71828) tensor: [[2.71828 2.71828 2.71828] [2.71828 2.71828 2.71828]]