---
title: scalesGradientByFrequency
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcembeddingdescriptor/scalesgradientbyfrequency
---

# scalesGradientByFrequency

A Boolean that indicates whether the layer scales gradients by the inverse of the frequency of words in batch before the weight update.

## Declaration

```swift
var scalesGradientByFrequency: Bool { get }
```

## See Also

### Inspecting Embedding Descriptors

- [embeddingCount](mlcompute/mlcembeddingdescriptor/embeddingcount-77gxz.md)
- [embeddingDimension](mlcompute/mlcembeddingdescriptor/embeddingdimension-1u9g.md)
- [paddingIndex](mlcompute/mlcembeddingdescriptor/paddingindex-pb1e.md)
- [maximumNorm](mlcompute/mlcembeddingdescriptor/maximumnorm-17u0k.md)
- [pNorm](mlcompute/mlcembeddingdescriptor/pnorm-8vhw1.md)
