Skip to content

TensorFlow dependency has a version incompatibility on macOS #10

@BradLarson

Description

@BradLarson

Thanks for putting this library together, we're looking at using it in the near term to perform image loading and saving within Swift for TensorFlow's models (pending PR for this ).

One issue we encountered is that if you attempt to build the current version of the library on macOS via SwiftPM, you will hit a version mismatch. By default, SwiftPM targets macOS 10.10, but we needed to set a minimum macOS version of 10.13 for Swift for TensorFlow. This causes a problem when building with one of our toolchains on macOS, triggering an error here.

To enable the import of TensorFlow in this project on macOS, I believe you'll need to add

    platforms: [
        .macOS(.v10_13),
    ],

just after the package name in Package.swift. One downside of this is that it will limit your backwards compatibility on macOS to 10.13.

In the meantime, I've pegged our import of Swim to 3.6.1, the release before the TensorFlow extensions were added. With that, we can use this framework, but I wanted to point this out for future commits.

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