Large constant threshold - Threshold above which the code generator writes DNN constants to binary data

        files - MATLAB ([original](https://in.mathworks.com/help/coder/ref/largeconstantthreshold.html)) ([raw](?raw))

Main Content

Threshold above which the code generator writes DNN constants to binary data files

Since R2024a

Description

App Configuration Pane: Code Appearance

Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig

The threshold (in bytes) above which the constants for a deep neural network (DNN) are written to binary data files. By default, the code generator sets this threshold to 131072 bytes. Depending on your application, you can set this threshold to a different integer value.

This parameter is applicable only if you generate code that does not depend on third-party deep learning libraries.

Settings

131072 | positive integer

Large constant generation threshold in bytes, specified as a positive integer. The default setting is 131072.

Programmatic Use

**Property:**LargeConstantThreshold
Values: 131072 | positive integer
Default: 131072

Version History

Introduced in R2024a