---
title: ".!=(_:_:)"
framework: coreml
role: symbol
role_heading: Operator
path: "coreml/mltensor/'.!=(_:_:)"
---

# .!=(_:_:)

Computes element-wise inequality between two tensors.

## Declaration

```swift
static func .!= (lhs: MLTensor, rhs: MLTensor) -> MLTensor
```

## Return Value

Return Value A Boolean tensor where each element is true if self is not equal to than the corresponding element of other, and false otherwise.

## Discussion

Discussion Shapes must be broadcastable, where the broadcasted shape becomes the shape of the output.

## See Also

### Performing arithmetic operations

- [*(_:_:)](coreml/mltensor/*(_:_:).md)
- [*=(_:_:)](coreml/mltensor/*=(_:_:).md)
- [+(_:_:)](coreml/mltensor/+(_:_:).md)
- [+=(_:_:)](coreml/mltensor/+=(_:_:).md)
- [-(_:)](coreml/mltensor/-(_:).md)
- [-(_:_:)](coreml/mltensor/-(_:_:).md)
- [-=(_:_:)](coreml/mltensor/-=(_:_:).md)
- [.!(_:)](coreml/mltensor/'.!(_:).md)
- [.&(_:_:)](coreml/mltensor/'.&(_:_:).md)
- [.==(_:_:)](coreml/mltensor/'.==(_:_:).md)
- [.>(_:_:)](coreml/mltensor/'._(_:_:)-3m3ro.md)
- [.<(_:_:)](coreml/mltensor/'._(_:_:)-6kfoh.md)
- [.|(_:_:)](coreml/mltensor/'._(_:_:)-7z7ks.md)
- [.^(_:_:)](coreml/mltensor/'._(_:_:)-8il7w.md)
- [.>=(_:_:)](coreml/mltensor/'._=(_:_:)-5qa2u.md)
