# Method find

#### static member find: 'T -> Tensor<'T> -> int64 list

Finds the first occurence of the specfied value and returns its indices.

##### Declaration

`static member find: value:'T -> a:Tensor<'T> -> int64 list`

##### Parameters

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

'T | value | The value to find. |

Tensor<'T> | a | The tensor containing the source values. |

##### Returns

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

int64 list | The indices of the value. |

##### Remarks

The values is searched for an the index of the first occurence is returned. If the value is not found, an System.InvalidOperationException is raised. Use static member tryFind: 'T -> Tensor<'T> -> int64 list option instead, if the value might not be present.

##### Examples

```
let a = HostTensor.ofList2D [[1.0; 2.0; 3.0; 4.0]
[5.0; 6.0; 7.0; 3.0]]
let b = Tensor.find 3.0 a // b = [0L; 2L]
```

##### Exceptions

Type | Condition |
---|---|

System.InvalidOperationException | Raised if value is not found. |