VM Images

29 views
Skip to first unread message

Mark Lambert

unread,
Feb 18, 2021, 2:28:32 PMFeb 18
to Swift for TensorFlow
Hello All,

With the move to consuming stock Swift.org tool chains is there any impact to the availability of images on GCP (e.g, swift-latest-gpu-ubuntu-1804)?

-Mark

Brad Larson

unread,
Feb 18, 2021, 3:14:50 PMFeb 18
to Swift for TensorFlow, mark.l...@berkeley.edu
The current plan is for our GCP images that are based on the 0.12 toolchain to remain available. However, new images will not be released for the 0.13 (stock) toolchains and beyond.

You should be able to use the existing GCP images as a starting point and simply replace the toolchain within them, or use other CUDA-based images and install the toolchain on those. Sorry that I don't have something better to report, but this hopefully shouldn't be too much of an inconvenience when working with GCP and the Swift toolchains.

Mark Lambert

unread,
Feb 18, 2021, 4:42:32 PMFeb 18
to Brad Larson, Swift for TensorFlow
Thanks.  Still getting my head around what the shift to stock toolchains means.  Feels a little like coming into a movie halfway in.

Looking at the slides from the last (final?) S4TF design meeting, it looks like some of the models from swift-models were ported (translated?) to use the stock toolchain.  I'm assuming that was almost seamless?

Brad Larson

unread,
Feb 18, 2021, 5:37:50 PMFeb 18
to Swift for TensorFlow, mark.l...@berkeley.edu, Swift for TensorFlow, Brad Larson
The big thing to be aware of when using the stock Swift toolchains is that any file that contains @differentiable or other differentiation-related items needs to have the following import statement:

import _Differentiation

It's fairly rare, but if your model did anything directly with ElementaryFunctions, that might need to be reworked slightly to line up with now using Swift Numerics instead of our own in-house implementation of that. Odds are, you won't have anything like that, so simply adding the above import is all you need.

Gaston Seneza

unread,
Feb 18, 2021, 5:52:47 PMFeb 18
to Brad Larson, Swift for TensorFlow, mark.l...@berkeley.edu
Wow, this actually answers the problem I was dealing with myself. Thank you Brad! 

Gaston S. 

“Either I will find a way or, I will make one.” ~Anonymous 

On Feb 18, 2021, at 4:37 PM, 'Brad Larson' via Swift for TensorFlow <sw...@tensorflow.org> wrote:

The big thing to be aware of when using the stock Swift toolchains is that any file that contains @differentiable or other differentiation-related items needs to have the following import statement:
--
To unsubscribe from this group and stop receiving emails from it, send an email to swift+un...@tensorflow.org.
Reply all
Reply to author
Forward
0 new messages