Method padToSame
static member padToSame: Tensor<'TA> * Tensor<'TB> -> Tensor<'TA> * Tensor<'TB>
Pads all specified tensors from the left with dimensions of size one until they have the same dimensionality.
Declaration
static member padToSame: a:Tensor<'TA> * b:Tensor<'TB> -> Tensor<'TA> * Tensor<'TB>Parameters
| Type | Name | Description | 
|---|---|---|
| Tensor<'TA> | a | The tensor to operate on. | 
| Tensor<'TB> | b | The tensor to operate on. | 
Returns
| Type | Description | 
|---|---|
| Tensor<'TA> * Tensor<'TB> | A tuple of the resulting tensors, all having the same dimensionality. | 
Type Parameters
| Name | Description | 
|---|---|
| 'TA | |
| 'TB | 
Remarks
Size one dimensions are added from the left to each tensor until all of them have the same dimensionality.
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 [4L; 5L]
 let b = HostTensor.zeros [3L; 4L; 5L]
 let pa, pb = Tensor.padToSame (a, b) // pa.Shape = [1L; 4L; 5L]; pb.Shape = [3L; 4L; 5L]See Also
static member padToSame: Tensor<'TA> * Tensor<'TB> * Tensor<'TC> -> Tensor<'TA> * Tensor<'TB> * Tensor<'TC>
Pads all specified tensors from the left with dimensions of size one until they have the same dimensionality.
Declaration
static member padToSame: a:Tensor<'TA> * b:Tensor<'TB> * c:Tensor<'TC> -> Tensor<'TA> * Tensor<'TB> * Tensor<'TC>Parameters
| Type | Name | Description | 
|---|---|---|
| Tensor<'TA> | a | The tensor to operate on. | 
| Tensor<'TB> | b | The tensor to operate on. | 
| Tensor<'TC> | c | The tensor to operate on. | 
Returns
| Type | Description | 
|---|---|
| Tensor<'TA> * Tensor<'TB> * Tensor<'TC> | A tuple of the resulting tensors, all having the same dimensionality. | 
Type Parameters
| Name | Description | 
|---|---|
| 'TA | |
| 'TB | |
| 'TC | 
See Also
static member padToSame: Tensor<'T> list -> Tensor<'T> list
Pads all specified tensors from the left with dimensions of size one until they have the same dimensionality.
Declaration
static member padToSame: xs:Tensor<'T> list -> Tensor<'T> listParameters
| Type | Name | Description | 
|---|---|---|
| Tensor<'T> list | xs | A list of tensors to operate on. | 
Returns
| Type | Description | 
|---|---|
| Tensor<'T> list | A list of the resulting tensors, all having the same dimensionality. |