<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNGenerateOpticalFlowRequest/keepNetworkOutput",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNGenerateOpticalFlowRequest(py)keepNetworkOutput"
  },
  "title" : "keepNetworkOutput"
}
-->

# keepNetworkOutput

A Boolean value that indicates whether to keep the raw pixel buffer coming from the machine learning network.

```
var keepNetworkOutput: Bool { get set }
```

## Discussion

The default is <doc://com.apple.documentation/documentation/Swift/false>. When you set this to <doc://com.apple.documentation/documentation/Swift/true>, the system ignores [`outputPixelFormat`](/documentation/Vision/VNGenerateOpticalFlowRequest/outputPixelFormat). Setting this for revision 1 has no effect because it’s not machine learning-based.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)