# Method padLeft

#### static member padLeft: Tensor<'T> -> Tensor<'T>

Insert a dimension of size one as the first dimension.

##### Declaration

`static member padLeft: a:Tensor<'T> -> Tensor<'T>`

##### Parameters

Type | Name | Description |
---|---|---|

Tensor<'T> | a | The tensor to operate on. |

##### Returns

Type | Description |
---|---|

Tensor<'T> | The resulting tensor. |

##### Remarks

The operation returns a view of the original tensor and shares its storage. Modifications done to the returned tensor will affect the original tensor. Also, modifying the orignal tensor will affect the view.

##### Examples

```
let a = HostTensor.zeros [3L; 4L; 5L]
let b = Tensor.padLeft a // b.Shape = [1L; 3L; 4L; 5L]
```