This optimization should not be used with stateful models. If not specified, weight sharing is disabled. The section of model config file specifying this parameter will look like: parameters: { key: "ENABLE_WEIGHT_SHARING" value: { string_value: "true" } } ENABLE_CACHE_CLEANING: Boolean ...