Skip to content

Instantly share code, notes, and snippets.

@dbolella
Created November 20, 2019 14:55
Show Gist options
  • Save dbolella/a07fd4195a98bf2be48232bece126b84 to your computer and use it in GitHub Desktop.
Save dbolella/a07fd4195a98bf2be48232bece126b84 to your computer and use it in GitHub Desktop.
Error received pulling in Datasets package
Installing packages:
.package(url: "https://github.com/tensorflow/swift-models.git", .branch("master"))
Datasets
With SwiftPM flags: []
Working in: /tmp/tmpcfyrcapb/swift-install
Fetching https://github.com/tensorflow/swift-models.git
Cloning https://github.com/tensorflow/swift-models.git
Resolving https://github.com/tensorflow/swift-models.git at master
[1/6] Compiling Datasets CIFAR10.swift
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:117:54: error: incorrect argument label in call (have 'permutation:', expected 'withPermutations:')
let imageTensor = Tensor<Float>(images.transposed(permutation: [0, 2, 3, 1]))
^~~~~~~~~~~~
withPermutations
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:129:16: error: use of unresolved identifier '_Raw'
label: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.label }),
^~~~
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:130:15: error: use of unresolved identifier '_Raw'
data: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.data })
^~~~
[2/6] Compiling Datasets DatasetUtilities.swift
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:117:54: error: incorrect argument label in call (have 'permutation:', expected 'withPermutations:')
let imageTensor = Tensor<Float>(images.transposed(permutation: [0, 2, 3, 1]))
^~~~~~~~~~~~
withPermutations
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:129:16: error: use of unresolved identifier '_Raw'
label: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.label }),
^~~~
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:130:15: error: use of unresolved identifier '_Raw'
data: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.data })
^~~~
[3/6] Compiling Datasets ImageClassificationDataset.swift
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:117:54: error: incorrect argument label in call (have 'permutation:', expected 'withPermutations:')
let imageTensor = Tensor<Float>(images.transposed(permutation: [0, 2, 3, 1]))
^~~~~~~~~~~~
withPermutations
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:129:16: error: use of unresolved identifier '_Raw'
label: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.label }),
^~~~
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/CIFAR10/CIFAR10.swift:130:15: error: use of unresolved identifier '_Raw'
data: _Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.data })
^~~~
[4/6] Compiling Datasets LabeledExample.swift
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/MNIST/MNIST.swift:92:28: error: incorrect argument label in call (have 'permutation:', expected 'withPermutations:')
.transposed(permutation: [0, 2, 3, 1]) / 255 // NHWC
^~~~~~~~~~~~
withPermutations
[5/6] Compiling Datasets MNIST.swift
/tmp/tmpcfyrcapb/swift-install/package/.build/checkouts/swift-models/Datasets/MNIST/MNIST.swift:92:28: error: incorrect argument label in call (have 'permutation:', expected 'withPermutations:')
.transposed(permutation: [0, 2, 3, 1]) / 255 // NHWC
^~~~~~~~~~~~
withPermutations
Install Error: swift-build returned nonzero exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment