Skip to content

Get multiple outputs from MPSNNGraph #73

@vincent1bt

Description

@vincent1bt

Hello!, Is there a way to get multiple MPSNNImageNode from a MPSNNGraph?

We can use this function to specify multiple result images:

let graph = MPSNNGraph(device: commandQueue.device, resultImages: [...], resultsAreNeeded: &returnImages)

However, to run the graph the function:

graph.executeAsync(withSourceImages: [inputImage]) { (outputImage, error) in ...

Only has one MPSImage output.

And I can only get the first MPSNNImageNode from the resultImages array in the graph.executeAsync function.

Is there a way to get all the MPSNNImageNode from the resultImages array?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions