diff --git a/swift/01a_fastai_layers.ipynb b/swift/01a_fastai_layers.ipynb index 97721341a..b1b7ea2dd 100644 --- a/swift/01a_fastai_layers.ipynb +++ b/swift/01a_fastai_layers.ipynb @@ -460,6 +460,8 @@ "\n", "@frozen\n", "public struct FAAvgPool2D: FALayer,ParameterlessLayer {\n", + " // swift-apis#1037 workaround.\n", + " public typealias TangentVector = EmptyTangentVector\n", " // TF-603 workaround.\n", " public typealias Input = Tensor\n", " public typealias Output = Tensor\n", @@ -508,6 +510,8 @@ "\n", "@frozen\n", "public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer {\n", + " // swift-apis#1037 workaround.\n", + " public typealias TangentVector = EmptyTangentVector\n", " // TF-603 workaround.\n", " public typealias Input = Tensor\n", " public typealias Output = Tensor\n", diff --git a/swift/FastaiNotebook_01a_fastai_layers/Sources/FastaiNotebook_01a_fastai_layers/01a_fastai_layers.swift b/swift/FastaiNotebook_01a_fastai_layers/Sources/FastaiNotebook_01a_fastai_layers/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_01a_fastai_layers/Sources/FastaiNotebook_01a_fastai_layers/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_01a_fastai_layers/Sources/FastaiNotebook_01a_fastai_layers/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_02_fully_connected/Sources/FastaiNotebook_02_fully_connected/01a_fastai_layers.swift b/swift/FastaiNotebook_02_fully_connected/Sources/FastaiNotebook_02_fully_connected/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_02_fully_connected/Sources/FastaiNotebook_02_fully_connected/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_02_fully_connected/Sources/FastaiNotebook_02_fully_connected/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_02a_why_sqrt5/Sources/FastaiNotebook_02a_why_sqrt5/01a_fastai_layers.swift b/swift/FastaiNotebook_02a_why_sqrt5/Sources/FastaiNotebook_02a_why_sqrt5/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_02a_why_sqrt5/Sources/FastaiNotebook_02a_why_sqrt5/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_02a_why_sqrt5/Sources/FastaiNotebook_02a_why_sqrt5/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_03_minibatch_training/Sources/FastaiNotebook_03_minibatch_training/01a_fastai_layers.swift b/swift/FastaiNotebook_03_minibatch_training/Sources/FastaiNotebook_03_minibatch_training/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_03_minibatch_training/Sources/FastaiNotebook_03_minibatch_training/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_03_minibatch_training/Sources/FastaiNotebook_03_minibatch_training/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_04_callbacks/Sources/FastaiNotebook_04_callbacks/01a_fastai_layers.swift b/swift/FastaiNotebook_04_callbacks/Sources/FastaiNotebook_04_callbacks/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_04_callbacks/Sources/FastaiNotebook_04_callbacks/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_04_callbacks/Sources/FastaiNotebook_04_callbacks/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_05_anneal/Sources/FastaiNotebook_05_anneal/01a_fastai_layers.swift b/swift/FastaiNotebook_05_anneal/Sources/FastaiNotebook_05_anneal/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_05_anneal/Sources/FastaiNotebook_05_anneal/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_05_anneal/Sources/FastaiNotebook_05_anneal/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_05b_early_stopping/Sources/FastaiNotebook_05b_early_stopping/01a_fastai_layers.swift b/swift/FastaiNotebook_05b_early_stopping/Sources/FastaiNotebook_05b_early_stopping/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_05b_early_stopping/Sources/FastaiNotebook_05b_early_stopping/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_05b_early_stopping/Sources/FastaiNotebook_05b_early_stopping/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_06_cuda/Sources/FastaiNotebook_06_cuda/01a_fastai_layers.swift b/swift/FastaiNotebook_06_cuda/Sources/FastaiNotebook_06_cuda/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_06_cuda/Sources/FastaiNotebook_06_cuda/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_06_cuda/Sources/FastaiNotebook_06_cuda/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_07_batchnorm/Sources/FastaiNotebook_07_batchnorm/01a_fastai_layers.swift b/swift/FastaiNotebook_07_batchnorm/Sources/FastaiNotebook_07_batchnorm/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_07_batchnorm/Sources/FastaiNotebook_07_batchnorm/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_07_batchnorm/Sources/FastaiNotebook_07_batchnorm/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_08_data_block/Sources/FastaiNotebook_08_data_block/01a_fastai_layers.swift b/swift/FastaiNotebook_08_data_block/Sources/FastaiNotebook_08_data_block/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_08_data_block/Sources/FastaiNotebook_08_data_block/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_08_data_block/Sources/FastaiNotebook_08_data_block/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_08a_heterogeneous_dictionary/Sources/FastaiNotebook_08a_heterogeneous_dictionary/01a_fastai_layers.swift b/swift/FastaiNotebook_08a_heterogeneous_dictionary/Sources/FastaiNotebook_08a_heterogeneous_dictionary/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_08a_heterogeneous_dictionary/Sources/FastaiNotebook_08a_heterogeneous_dictionary/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_08a_heterogeneous_dictionary/Sources/FastaiNotebook_08a_heterogeneous_dictionary/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_08c_data_block_generic/Sources/FastaiNotebook_08c_data_block_generic/01a_fastai_layers.swift b/swift/FastaiNotebook_08c_data_block_generic/Sources/FastaiNotebook_08c_data_block_generic/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_08c_data_block_generic/Sources/FastaiNotebook_08c_data_block_generic/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_08c_data_block_generic/Sources/FastaiNotebook_08c_data_block_generic/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_09_optimizer/Sources/FastaiNotebook_09_optimizer/01a_fastai_layers.swift b/swift/FastaiNotebook_09_optimizer/Sources/FastaiNotebook_09_optimizer/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_09_optimizer/Sources/FastaiNotebook_09_optimizer/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_09_optimizer/Sources/FastaiNotebook_09_optimizer/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_10_mixup_ls/Sources/FastaiNotebook_10_mixup_ls/01a_fastai_layers.swift b/swift/FastaiNotebook_10_mixup_ls/Sources/FastaiNotebook_10_mixup_ls/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_10_mixup_ls/Sources/FastaiNotebook_10_mixup_ls/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_10_mixup_ls/Sources/FastaiNotebook_10_mixup_ls/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_11_imagenette/Package.resolved b/swift/FastaiNotebook_11_imagenette/Package.resolved deleted file mode 100644 index 63180a5be..000000000 --- a/swift/FastaiNotebook_11_imagenette/Package.resolved +++ /dev/null @@ -1,34 +0,0 @@ -{ - "object": { - "pins": [ - { - "package": "Just", - "repositoryURL": "https://github.com/saeta/Just", - "state": { - "branch": null, - "revision": "35dbe6823bf5f9b9bb996c1fe6c9ad9a4c59d821", - "version": "0.7.3" - } - }, - { - "package": "NotebookExport", - "repositoryURL": "https://github.com/latenitesoft/NotebookExport", - "state": { - "branch": null, - "revision": "9102631248217cc8ef405e92edae7bdcebcb7166", - "version": "0.6.0" - } - }, - { - "package": "Path.swift", - "repositoryURL": "https://github.com/mxcl/Path.swift", - "state": { - "branch": null, - "revision": "dac007e907a4f4c565cfdc55a9ce148a761a11d5", - "version": "0.16.3" - } - } - ] - }, - "version": 1 -} diff --git a/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/01a_fastai_layers.swift b/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/01a_fastai_layers.swift index b27ec3bcf..7316d7440 100644 --- a/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/01a_fastai_layers.swift +++ b/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/01a_fastai_layers.swift @@ -223,6 +223,8 @@ public extension FAConv2D { @frozen public struct FAAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor @@ -263,6 +265,8 @@ public struct FAAvgPool2D: FALayer,Parameterles @frozen public struct FAGlobalAvgPool2D: FALayer,ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector // TF-603 workaround. public typealias Input = Tensor public typealias Output = Tensor diff --git a/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/11_imagenette.swift b/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/11_imagenette.swift index c06ca8064..8488ee827 100644 --- a/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/11_imagenette.swift +++ b/swift/FastaiNotebook_11_imagenette/Sources/FastaiNotebook_11_imagenette/11_imagenette.swift @@ -29,6 +29,9 @@ public struct ConvLayer: Layer { } public struct MaybeAvgPool2D: ParameterlessLayer { + // swift-apis#1037 workaround. + public typealias TangentVector = EmptyTangentVector + @noDerivative let poolSize: (Int, Int, Int, Int) @noDerivative let strides: (Int, Int, Int, Int) @noDerivative let padding: Padding