Last active
February 14, 2021 23:21
-
-
Save ProfFan/638f61aff223bfcbea94b2ddb026497a to your computer and use it in GitHub Desktop.
SwiftFusion compile on latest Arch Swift nightly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swift build -Xcc -I/usr/include/tensorflow | |
Updating https://github.com/saeta/penguin.git | |
Updating https://github.com/dan-zheng/tensorboardx-s4tf.git | |
Updating https://github.com/apple/swift-tools-support-core.git | |
Updating https://github.com/tensorflow/swift-apis | |
Updating https://github.com/apple/swift-numerics | |
Updating https://github.com/pvieito/PythonKit.git | |
Updating https://github.com/google/swift-benchmark.git | |
Updating https://github.com/yaslab/CSV.swift.git | |
Updating https://github.com/vojtamolda/Plotly.swift | |
Updating https://github.com/apple/swift-argument-parser.git | |
Cloning https://github.com/saeta/penguin.git | |
Resolving https://github.com/saeta/penguin.git at main | |
Cloning https://github.com/yaslab/CSV.swift.git | |
Resolving https://github.com/yaslab/CSV.swift.git at 2.4.3 | |
Cloning https://github.com/dan-zheng/tensorboardx-s4tf.git | |
Resolving https://github.com/dan-zheng/tensorboardx-s4tf.git at tensorflow-as-swiftpm-dependency | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:16: warning: future versions of Swift reserve the word 'await'; if this name is unavoidable, use backticks to escape it | |
return try await(body).get() | |
^~~~~ | |
`await` | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:16: warning: future versions of Swift reserve the word 'await'; if this name is unavoidable, use backticks to escape it | |
return try await(body).get() | |
^~~~~ | |
`await` | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:16: warning: future versions of Swift reserve the word 'await'; if this name is unavoidable, use backticks to escape it | |
return try await(body).get() | |
^~~~~ | |
`await` | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:16: warning: future versions of Swift reserve the word 'await'; if this name is unavoidable, use backticks to escape it | |
return try await(body).get() | |
^~~~~ | |
`await` | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/ObjectIdentifierProtocol.swift:14:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol ObjectIdentifierProtocol: class, Hashable {} | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/ObjectIdentifierProtocol.swift:14:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol ObjectIdentifierProtocol: class, Hashable {} | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/ObjectIdentifierProtocol.swift:14:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol ObjectIdentifierProtocol: class, Hashable {} | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/ObjectIdentifierProtocol.swift:14:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol ObjectIdentifierProtocol: class, Hashable {} | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/penguin/Sources/PenguinParallel/ConcurrencyPlatform.swift:105:5: warning: future versions of Swift reserve the word 'await'; if this name is unavoidable, use backticks to escape it | |
await(predicate) | |
^~~~~ | |
`await` | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:122:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol FileSystem: class { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:122:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol FileSystem: class { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:122:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol FileSystem: class { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:122:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol FileSystem: class { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/OutputByteStream.swift:46:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol OutputByteStream: class, TextOutputStream { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/OutputByteStream.swift:46:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol OutputByteStream: class, TextOutputStream { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/OutputByteStream.swift:46:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol OutputByteStream: class, TextOutputStream { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:53:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift:70:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:91:8: error: 'RawSignificand' is not a member type of type 'Self' | |
Self.RawSignificand: FixedWidthInteger, | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:92:16: error: 'TangentVector' is not a member type of type 'Self' | |
Self == Self.TangentVector | |
~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:135:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:146:4: error: function result's 'pullback' type does not match 'scalarized()' | |
@derivative(of: scalarized) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:147:54: note: 'pullback' does not have expected type '(Scalar) -> Tensor<Scalar>.TangentVector' (aka '(Scalar) -> Tensor<Scalar>') | |
func _vjpScalarized() -> (value: Scalar, pullback: (Scalar) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:136:15: note: 'scalarized()' defined here | |
public func scalarized() -> Scalar { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:177:4: error: can only differentiate functions with results that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:189:4: error: function result's 'pullback' type does not match '_' | |
@derivative(of: scalars) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:190:53: note: 'pullback' does not have expected type '(Array<Scalar>.TangentVector) -> Tensor<Scalar>.TangentVector' (aka '(Array<Scalar>.DifferentiableView) -> Tensor<Scalar>') | |
func _vjpScalars() -> (value: [Scalar], pullback: (Array<Scalar>.TangentVector) -> Tensor) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:178:32: note: '_' defined here | |
public var scalars: [Scalar] { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:206:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:219:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:221:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Scalar' (aka '(Tensor<Scalar>) -> Scalar') | |
value: Tensor, pullback: (Tensor) -> Scalar | |
^~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:207:10: note: 'init(_:on:)' defined here | |
public init(_ value: Scalar, on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:230:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:250:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but '[Scalar]' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:370:4: error: function result's 'pullback' type does not match 'init(_:on:)' | |
@derivative(of: init(_:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:372:30: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:231:10: note: 'init(_:on:)' defined here | |
public init(_ scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:383:4: error: function result's 'pullback' type does not match 'init(shape:scalars:on:)' | |
@derivative(of: init(shape:scalars:on:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:386:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> Array<Scalar>.TangentVector' (aka '(Tensor<Scalar>) -> Array<Scalar>.DifferentiableView') | |
) -> (value: Tensor, pullback: (Tensor) -> Array<Scalar>.TangentVector) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:251:10: note: 'init(shape:scalars:on:)' defined here | |
public init(shape: TensorShape, scalars: [Scalar], on device: Device = .default) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:655:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:668:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:685:19: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Tensor: PointwiseMultiplicative where Scalar: Numeric { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:705:36: error: cannot find type 'EuclideanDifferentiable' in scope | |
extension Tensor: Differentiable & EuclideanDifferentiable where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:748:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:84:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:116:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:156:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:168:4: error: function result's 'pullback' type does not match 'init(_:deviceAndPrecisionLike:)' | |
@derivative(of: init(_:deviceAndPrecisionLike:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:172:34: note: 'pullback' does not have expected type '(Tensor<Scalar>.TangentVector) -> (Scalar, Tensor<Scalar>.TangentVector)' (aka '(Tensor<Scalar>) -> (Scalar, Tensor<Scalar>)') | |
) -> (value: Tensor, pullback: (Tensor) -> (Scalar, Tensor)) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift:157:10: note: 'init(_:deviceAndPrecisionLike:)' defined here | |
public init(_ value: Scalar, deviceAndPrecisionLike tensor: Tensor) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/SimplePersistence.swift:15:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol SimplePersistanceProtocol: class, JSONSerializable { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/SimplePersistence.swift:15:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead | |
public protocol SimplePersistanceProtocol: class, JSONSerializable { | |
^~~~~ | |
AnyObject | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:35:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:37:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:110:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:112:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:171:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:173:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:321:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:323:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:45: error: cannot find type 'KeyPathIterable' in scope | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:405:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:407:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:423:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:425:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var infinityNorm: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:448:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:403:14: error: type 'AdaMax<Model>' does not conform to protocol 'Optimizer' | |
public class AdaMax<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:409:20: note: possibly intended match 'AdaMax<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:46: error: cannot find type 'KeyPathIterable' in scope | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:491:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:493:9: error: 'TangentVector' is not a member type of type 'Model' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:509:34: error: 'TangentVector' is not a member type of type 'Model' | |
public var firstMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:511:35: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMoments: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:513:38: error: 'TangentVector' is not a member type of type 'Model' | |
public var secondMomentsMax: Model.TangentVector = .zero | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:535:67: error: 'TangentVector' is not a member type of type 'Model' | |
public func update(_ model: inout Model, along direction: Model.TangentVector) { | |
~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:489:14: error: type 'AMSGrad<Model>' does not conform to protocol 'Optimizer' | |
public class AMSGrad<Model: Differentiable & KeyPathIterable>: Optimizer | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:495:20: note: possibly intended match 'AMSGrad<Model>.Model' (aka 'Model') does not conform to 'Differentiable' | |
public typealias Model = Model | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift:22:18: note: protocol requires nested type 'Model'; do you want to add it? | |
associatedtype Model: Differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:584:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & PointwiseMultiplicative & ElementaryFunctions | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:586:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:283:33: error: cannot find type 'PointwiseMultiplicative' in scope | |
where Element: Differentiable & PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:48: error: operator is not a known binary operator | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:696:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:248:33: error: cannot find type 'VectorProtocol' in scope | |
where Element: Differentiable & VectorProtocol { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:271:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func scaled(by scale: Element.VectorSpaceScalar) -> Self { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:35: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:19: error: value of type 'Model.TangentVector' has no member 'scaled' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:38: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:81:51: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
alpha = alpha.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:82:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(alpha).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:92:14: error: type 'Model.TangentVector' has no member 'init' | |
alpha = .init(copying: other.alpha, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:142:44: error: type 'Model.TangentVector' has no member 'one' | |
self.accumulator = Model.TangentVector.one.scaled(by: initialAccumulatorValue) | |
~~~~~~~~~~~~~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:44: error: operator is not a known binary operator | |
accumulator = accumulator + (direction .* direction) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:34: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Array<Element>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
^ | |
as! Array<Element>.DifferentiableView | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:146:31: error: binary operator '+' cannot be applied to operands of type 'Model.TangentVector' and 'Array<_>.DifferentiableView' | |
accumulator = accumulator + (direction .* direction) | |
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:147:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(accumulator).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:154:20: error: type 'Model.TangentVector' has no member 'init' | |
accumulator = .init(copying: other.accumulator, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:51: error: operator is not a known binary operator | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:38: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:22: error: value of type 'Model.TangentVector' has no member 'scaled' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:41: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:221:54: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
averageSquared.scaled(by: rho) + (direction .* direction).scaled(by: 1 - rho) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: operator is not a known binary operator | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:30: error: binary operator '.*' cannot be applied to operands of type 'Model.TangentVector' and 'Tensor<_>' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:53: error: type 'Model.TangentVector' has no member 'sqrt' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:222:75: error: value of type 'Model.TangentVector' has no member 'adding' | |
var stepSize = direction .* Model.TangentVector.sqrt(accumulatedDelta.adding(epsilon)) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:38: error: type 'Model.TangentVector' has no member 'sqrt' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:223:58: error: value of type 'Model.TangentVector' has no member 'adding' | |
stepSize ./= Model.TangentVector.sqrt(averageSquared.adding(epsilon)) | |
~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:52: error: operator is not a known binary operator | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:40: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:226:24: error: value of type 'Model.TangentVector' has no member 'scaled' | |
accumulatedDelta.scaled(by: rho) + (stepSize .* stepSize).scaled(by: 1 - rho) | |
~~~~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:235:23: error: type 'Model.TangentVector' has no member 'init' | |
averageSquared = .init(copying: other.averageSquared, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:236:25: error: type 'Model.TangentVector' has no member 'init' | |
accumulatedDelta = .init(copying: other.accumulatedDelta, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:378:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:380:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:381:43: error: type 'Model.TangentVector' has no member 'sqrt' | |
let denominator = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:392:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:393:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:467:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:477:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:478:21: error: cannot infer contextual base in reference to member 'init' | |
infinityNorm = .init(copying: other.infinityNorm, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:545:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:558:29: error: type 'Model' has no member 'TangentVector' | |
let denominator = Model.TangentVector.sqrt(secondMomentsMax).adding(epsilon) | |
~~~~~ ^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:559:11: error: value of type 'Model' has no member 'move' | |
model.move(along: (firstMoments ./ denominator).scaled(by: -stepSize)) | |
~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:569:21: error: cannot infer contextual base in reference to member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:570:22: error: cannot infer contextual base in reference to member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:571:25: error: cannot infer contextual base in reference to member 'init' | |
secondMomentsMax = .init(copying: other.secondMomentsMax, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:52: error: operator is not a known binary operator | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:39: error: cannot assign value of type 'Tensor<Scalar>' to type 'Model.TangentVector' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
as! Model.TangentVector | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:21: error: value of type 'Model.TangentVector' has no member 'scaled' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
~~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:42: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:632:55: error: cannot convert value of type 'Model.TangentVector' to expected argument type 'Tensor<Scalar>' | |
secondMoments.scaled(by: beta2) + (direction .* direction).scaled(by: 1 - beta2) | |
^ | |
as! Tensor<Scalar> | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:33: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:633:63: error: value of type 'Model.TangentVector' has no member 'scaled' | |
firstMoments = firstMoments.scaled(by: beta1) + direction.scaled(by: 1 - beta1) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:640:49: error: type 'Model.TangentVector' has no member 'sqrt' | |
let secondMoments_h = Model.TangentVector.sqrt(secondMoments).adding(epsilon) | |
~~~~~~~~~~~~~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:650:38: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: firstMoments.scaled(by: -stepSize)) | |
~~~~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:661:21: error: type 'Model.TangentVector' has no member 'init' | |
firstMoments = .init(copying: other.firstMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift:662:22: error: type 'Model.TangentVector' has no member 'init' | |
secondMoments = .init(copying: other.secondMoments, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:41:24: error: cannot find type 'VectorProtocol' in scope | |
Model.TangentVector: VectorProtocol & ElementaryFunctions & KeyPathIterable, | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:42:23: error: 'VectorSpaceScalar' is not a member type of type 'Model.TangentVector' | |
Model.TangentVector.VectorSpaceScalar == Float | |
~~~~~~~~~~~~~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:25: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:87:58: error: value of type 'Model.TangentVector' has no member 'scaled' | |
velocity = velocity.scaled(by: momentum) - direction.scaled(by: learningRate) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:34: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:89:67: error: value of type 'Model.TangentVector' has no member 'scaled' | |
model.move(along: velocity.scaled(by: momentum) - direction.scaled(by: learningRate)) | |
~~~~~~~~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift:100:17: error: type 'Model.TangentVector' has no member 'init' | |
velocity = .init(copying: other.velocity, to: device) | |
~^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:53: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:23:18: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array: ElementaryFunctions where Element: ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:116:33: error: cannot find type 'ElementaryFunctions' in scope | |
where Element: Differentiable & ElementaryFunctions { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:115:37: error: cannot find type 'ElementaryFunctions' in scope | |
extension Array.DifferentiableView: ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:247:37: error: cannot find type 'VectorProtocol' in scope | |
extension Array.DifferentiableView: VectorProtocol | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:249:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public typealias VectorSpaceScalar = Element.VectorSpaceScalar | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:251:35: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func adding(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:255:41: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func add(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:261:40: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public func subtracting(_ x: Element.VectorSpaceScalar) -> Array<Element>.DifferentiableView { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:265:46: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func subtract(_ x: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:275:48: error: 'VectorSpaceScalar' is not a member type of type 'Element' | |
public mutating func scale(by scale: Element.VectorSpaceScalar) { | |
~~~~~~~ ^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:282:37: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension Array.DifferentiableView: PointwiseMultiplicative | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:291:22: error: operator implementation without matching operator declaration | |
public static func .* (lhs: Self, rhs: Self) -> Self { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:296:22: error: operator implementation without matching operator declaration | |
public static func .*= (lhs: inout Self, rhs: Self) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:28:62: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { x.map(Element.sqrt) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:31:61: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { x.map(Element.cos) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:34:61: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { x.map(Element.sin) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:37:61: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { x.map(Element.tan) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:40:62: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { x.map(Element.acos) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:43:62: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { x.map(Element.asin) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:46:62: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { x.map(Element.atan) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:49:62: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { x.map(Element.cosh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:52:62: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { x.map(Element.sinh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:55:62: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { x.map(Element.tanh) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:58:63: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { x.map(Element.acosh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:61:63: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { x.map(Element.asinh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:64:63: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { x.map(Element.atanh) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:67:61: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { x.map(Element.exp) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:70:62: error: type 'Element' has no member 'exp2' | |
public static func exp2(_ x: Self) -> Self { x.map(Element.exp2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:73:63: error: type 'Element' has no member 'exp10' | |
public static func exp10(_ x: Self) -> Self { x.map(Element.exp10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:76:63: error: type 'Element' has no member 'expm1' | |
public static func expm1(_ x: Self) -> Self { x.map(Element.expm1) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:79:61: error: type 'Element' has no member 'log' | |
public static func log(_ x: Self) -> Self { x.map(Element.log) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:82:62: error: type 'Element' has no member 'log2' | |
public static func log2(_ x: Self) -> Self { x.map(Element.log2) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:85:63: error: type 'Element' has no member 'log10' | |
public static func log10(_ x: Self) -> Self { x.map(Element.log10) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:88:63: error: type 'Element' has no member 'log1p' | |
public static func log1p(_ x: Self) -> Self { x.map(Element.log1p) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:97:34: error: type 'Element' has no member 'pow' | |
return zip(x, y).map(Element.pow) | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:103:73: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { x.map { Element.pow($0, n) } } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:109:74: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { x.map { Element.root($0, n) } } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: error: no exact matches in call to initializer | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:121:68: error: type 'Element' has no member 'sqrt' | |
public static func sqrt(_ x: Self) -> Self { .init(x.map(Element.sqrt)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: error: no exact matches in call to initializer | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:124:67: error: type 'Element' has no member 'cos' | |
public static func cos(_ x: Self) -> Self { .init(x.map(Element.cos)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: error: no exact matches in call to initializer | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:127:67: error: type 'Element' has no member 'sin' | |
public static func sin(_ x: Self) -> Self { .init(x.map(Element.sin)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: error: no exact matches in call to initializer | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:130:67: error: type 'Element' has no member 'tan' | |
public static func tan(_ x: Self) -> Self { .init(x.map(Element.tan)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: error: no exact matches in call to initializer | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:133:68: error: type 'Element' has no member 'acos' | |
public static func acos(_ x: Self) -> Self { .init(x.map(Element.acos)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: error: no exact matches in call to initializer | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:136:68: error: type 'Element' has no member 'asin' | |
public static func asin(_ x: Self) -> Self { .init(x.map(Element.asin)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: error: no exact matches in call to initializer | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:139:68: error: type 'Element' has no member 'atan' | |
public static func atan(_ x: Self) -> Self { .init(x.map(Element.atan)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: error: no exact matches in call to initializer | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:142:68: error: type 'Element' has no member 'cosh' | |
public static func cosh(_ x: Self) -> Self { .init(x.map(Element.cosh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: error: no exact matches in call to initializer | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:145:68: error: type 'Element' has no member 'sinh' | |
public static func sinh(_ x: Self) -> Self { .init(x.map(Element.sinh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: error: no exact matches in call to initializer | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:148:68: error: type 'Element' has no member 'tanh' | |
public static func tanh(_ x: Self) -> Self { .init(x.map(Element.tanh)) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: error: no exact matches in call to initializer | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:151:69: error: type 'Element' has no member 'acosh' | |
public static func acosh(_ x: Self) -> Self { .init(x.map(Element.acosh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: error: no exact matches in call to initializer | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:154:69: error: type 'Element' has no member 'asinh' | |
public static func asinh(_ x: Self) -> Self { .init(x.map(Element.asinh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: error: no exact matches in call to initializer | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:157:69: error: type 'Element' has no member 'atanh' | |
public static func atanh(_ x: Self) -> Self { .init(x.map(Element.atanh)) } | |
~~~~~~~ ^~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: error: no exact matches in call to initializer | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:160:67: error: type 'Element' has no member 'exp' | |
public static func exp(_ x: Self) -> Self { .init(x.map(Element.exp)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: error: no exact matches in call to initializer | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:164:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp2(_ x: Self) -> Self { .init(Array.exp2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: error: no exact matches in call to initializer | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:167:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func exp10(_ x: Self) -> Self { .init(Array.exp10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: error: no exact matches in call to initializer | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:170:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func expm1(_ x: Self) -> Self { .init(Array.expm1(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: error: no exact matches in call to initializer | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:48: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: error: no exact matches in call to instance method 'map' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:55: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:178:69: error: type 'Element' has no member 'exp' | |
public static func log(_ x: Self) -> Self { .init(x.map { Element.exp($0) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: error: no exact matches in call to initializer | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:182:49: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log2(_ x: Self) -> Self { .init(Array.log2(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: error: no exact matches in call to initializer | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:185:50: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func log10(_ x: Self) -> Self { .init(Array.log10(x.base)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: error: no exact matches in call to initializer | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:189:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(Array.log1p(x.base)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:64: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:204:86: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ y: Self) -> Self { .init(zip(x, y).map(Element.pow)) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: error: no exact matches in call to initializer | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:58: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: error: no exact matches in call to instance method 'map' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:65: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:209:79: error: type 'Element' has no member 'pow' | |
public static func pow(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.pow($0, n) }) } | |
~~~~~~~ ^~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: error: no exact matches in call to initializer | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:59: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: error: no exact matches in call to instance method 'map' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:66: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:215:80: error: type 'Element' has no member 'root' | |
public static func root(_ x: Self, _ n: Int) -> Self { .init(x.map { Element.root($0, n) }) } | |
~~~~~~~ ^~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: error: no exact matches in call to initializer | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.adding(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:252:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'adding' | |
.init(map { $0.adding(x) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:256:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: error: no exact matches in call to initializer | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.subtracting(x) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:262:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'subtracting' | |
.init(map { $0.subtracting(x) }) | |
~~ ^~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:266:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: error: no exact matches in call to initializer | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:6: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: error: no exact matches in call to instance method 'map' | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:11: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
.init(map { $0.scaled(by: scale) }) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:272:20: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'scaled' | |
.init(map { $0.scaled(by: scale) }) | |
~~ ^~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:276:14: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for i in indices { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: error: no exact matches in call to initializer | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:34: note: found candidate with type '([Element]) -> Array<Element>.DifferentiableView' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: error: no exact matches in call to instance method 'map' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:39: note: found candidate with type '((Array<Element>.DifferentiableView.Element) throws -> Element) throws -> [Element]' (aka '((Element) throws -> Element) throws -> Array<Element>') | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:289:48: error: value of type 'Array<Element>.DifferentiableView.Element' (aka 'Element') has no member 'reciprocal' | |
public var reciprocal: Self { .init(map { $0.reciprocal }) } | |
~~ ^~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:292:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: cannot convert value of type '(Tensor<_>, Tensor<_>) -> Tensor<_>' to expected argument type '(Zip2Sequence<Array<Element>.DifferentiableView, Array<Element>.DifferentiableView>.Element) throws -> Tensor<_>' (aka '((Element, Element)) throws -> Tensor<_>') | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:36: error: generic parameter 'Scalar' could not be inferred | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:18: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:293:13: error: initializer 'init(_:)' requires that 'Element' conform to 'Differentiable' | |
return .init(zip(lhs, rhs).map(.*)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RangeReplaceableCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:18: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:297:31: error: referencing property 'count' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
precondition(lhs.count == rhs.count, "Count mismatch: \(lhs.count) and \(rhs.count)") | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Collection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:19: error: global function 'zip' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'Sequence' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:298:23: error: referencing property 'indices' on 'Array.DifferentiableView' requires that 'Element' conform to 'Differentiable' | |
for (i, x) in zip(lhs.indices, rhs) { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift:218:1: note: requirement from conditional conformance of 'Array<Element>.DifferentiableView' to 'RandomAccessCollection' | |
extension Array.DifferentiableView: | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:43:11: error: cannot find type '_KeyPathIterableBase' in scope | |
extension _KeyPathIterableBase { | |
^~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift:59:11: error: cannot find type 'KeyPathIterable' in scope | |
extension KeyPathIterable { | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:25: error: cannot find type 'EuclideanDifferentiable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:21:50: error: cannot find type 'KeyPathIterable' in scope | |
public protocol Module: EuclideanDifferentiable, KeyPathIterable | |
^~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:49: error: cannot find type 'TangentVector' in scope | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:202:63: error: generic signature requires types '<<error type>>' and 'EmptyTangentVector' to be the same | |
public protocol ParameterlessLayer: Layer where TangentVector == EmptyTangentVector { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:746:37: error: cannot find type 'EuclideanDifferentiable' in scope | |
TensorProtocol & Differentiable & EuclideanDifferentiable | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:63:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:35:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:175:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:174:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:42:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:51:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:166:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:165:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:203:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:156:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift:159:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Self.Output' does not conform to 'Differentiable' | |
@differentiable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:48:4: error: can only differentiate functions with results that conform to 'Differentiable', but 'Dense<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:71:33: error: cannot find type 'TangentVector' in scope | |
) -> (value: Self, pullback: (TangentVector) -> Tensor<Scalar>) { | |
^~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift:65:4: error: '@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:' | |
@derivative(of: init, wrt: weight) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift:57:24: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Embedding<Scalar>' does not conform to 'Differentiable' | |
@differentiable(wrt: self) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift:89:61: error: cannot find type 'ElementaryFunctions' in scope | |
TensorFlowScalar & BinaryFloatingPoint & Differentiable & ElementaryFunctions | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:1004:19: error: referenced declaration 'unbroadcasted' could not be resolved | |
@derivative(of: unbroadcasted) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:944:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (TensorShape) -> Tensor<Scalar>' | |
public func unbroadcasted(toShape otherShape: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:955:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (TensorShape) -> Tensor<Scalar>' | |
public func unbroadcasted<OtherScalar>(like other: Tensor<OtherScalar>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:961:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (TensorShape) -> Tensor<Scalar>' | |
public func unbroadcasted(to shape: TensorShape) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:1061:19: error: referenced declaration 'padded' could not be resolved | |
@derivative(of: padded) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:1035:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([(before: Int, after: Int)], Tensor<Scalar>.PaddingMode) -> Tensor<Scalar>' | |
public func padded(forSizes sizes: [(before: Int, after: Int)], with value: Scalar = 0) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift:1044:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([(before: Int, after: Int)], Tensor<Scalar>.PaddingMode) -> Tensor<Scalar>' | |
public func padded(forSizes sizes: [(before: Int, after: Int)], mode: PaddingMode) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift:39:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Image.swift:237:17: error: referenced declaration 'resizeNearestNeighbor' could not be resolved | |
@derivative(of: resizeNearestNeighbor) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Image.swift:222:6: note: candidate global function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (images: Tensor<Scalar>, size: Tensor<Int32>, alignCorners: Bool, halfPixelCenters: Bool) -> Tensor<Scalar>' | |
func resizeNearestNeighbor<Scalar: TensorFlowNumeric>( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Image.swift:280:17: error: referenced declaration 'resizeBilinear' could not be resolved | |
@derivative(of: resizeBilinear) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Image.swift:265:6: note: candidate global function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (images: Tensor<Scalar>, size: Tensor<Int32>, alignCorners: Bool, halfPixelCenters: Bool) -> Tensor<Float>' | |
func resizeBilinear<Scalar: TensorFlowNumeric>( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:119:19: error: referenced declaration 'diagonalPart' could not be resolved | |
@derivative(of: diagonalPart) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:36:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> () -> Tensor<Scalar>' | |
public func diagonalPart() -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:125:19: error: referenced declaration 'diagonal' could not be resolved | |
@derivative(of: diagonal) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:57:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> () -> Tensor<Scalar>' | |
public func diagonal() -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:131:19: error: referenced declaration 'bandPart(subdiagonalCount:superdiagonalCount:)' could not be resolved | |
@derivative(of: bandPart(subdiagonalCount:superdiagonalCount:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift:109:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Int, Int) -> Tensor<Scalar>' | |
public func bandPart(subdiagonalCount: Int, superdiagonalCount: Int) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:33:11: error: cannot find type 'PointwiseMultiplicative' in scope | |
extension PointwiseMultiplicative { | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:47:19: error: cannot find type 'ElementaryFunctions' in scope | |
extension Tensor: ElementaryFunctions where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:386:19: error: cannot find type 'VectorProtocol' in scope | |
extension Tensor: VectorProtocol where Scalar: TensorFlowFloatingPoint { | |
^~~~~~~~~~~~~~ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:455:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:462:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:469:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:476:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:520:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:527:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:556:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:563:4: error: can only differentiate with respect to parameters that conform to 'Differentiable', but 'Scalar' does not conform to 'Differentiable' | |
@differentiable(where Scalar: TensorFlowFloatingPoint) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:617:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:625:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:633:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:641:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:649:19: error: referenced declaration '*' could not be resolved | |
@derivative(of: *) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:514:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:521:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:528:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:662:19: error: referenced declaration '*' could not be resolved | |
@derivative(of: *) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:514:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:521:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:528:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:670:19: error: referenced declaration '*' could not be resolved | |
@derivative(of: *) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:514:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:521:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:528:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:678:19: error: referenced declaration '/' could not be resolved | |
@derivative(of: /) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:550:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:557:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:564:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:691:19: error: referenced declaration '/' could not be resolved | |
@derivative(of: /) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:550:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:557:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:564:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:707:19: error: referenced declaration '/' could not be resolved | |
@derivative(of: /) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:550:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:557:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:564:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:725:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +, wrt: lhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:733:19: error: referenced declaration '+' could not be resolved | |
@derivative(of: +, wrt: rhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:632:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:456:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:463:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func + (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func + (lhs: Self, rhs: Self) -> Self | |
^ | |
Swift.AdditiveArithmetic:2:31: note: candidate operator function is not defined in the current type context | |
prefix public static func + (x: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:741:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -, wrt: lhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:749:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -, wrt: rhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:757:19: error: referenced declaration '*' could not be resolved | |
@derivative(of: *, wrt: lhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:514:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:521:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:528:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:765:19: error: referenced declaration '*' could not be resolved | |
@derivative(of: *, wrt: rhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:514:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:521:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:528:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func * (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:773:19: error: referenced declaration '/' could not be resolved | |
@derivative(of: /, wrt: lhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:550:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:557:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:564:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>, Scalar) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:781:19: error: referenced declaration '/' could not be resolved | |
@derivative(of: /, wrt: rhs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:550:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:557:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:564:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Scalar, Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func / (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:856:19: error: referenced declaration 'clipped' could not be resolved | |
@derivative(of: clipped) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:826:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public func clipped(min: Tensor, max: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:833:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public func clipped(min: Tensor, max: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:840:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public func clipped(min: Scalar, max: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:847:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Scalar>, Tensor<Scalar>) -> Tensor<Scalar>' | |
public func clipped(min: Scalar, max: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:976:19: error: referenced declaration '-' could not be resolved | |
@derivative(of: -) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift:645:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:470:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Scalar, rhs: Tensor) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:477:22: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>) -> Tensor<Scalar>' | |
public static func - (lhs: Tensor, rhs: Scalar) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:969:29: note: candidate operator function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>.Type) -> (Tensor<Scalar>) -> Tensor<Scalar>' | |
public static prefix func - (rhs: Tensor) -> Tensor { | |
^ | |
Swift.AdditiveArithmetic:5:17: note: cannot yet register derivative default implementation for protocol requirements | |
static func - (lhs: Self, rhs: Self) -> Self | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:990:17: error: referenced declaration 'abs' could not be resolved | |
@derivative(of: abs) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:985:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>) -> Tensor<T>' | |
public func abs<T: SignedNumeric>(_ x: Tensor<T>) -> Tensor<T> { | |
^ | |
Swift.abs:1:24: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>) -> Tensor<T>' | |
@inlinable public func abs<T>(_ x: T) -> T where T : Comparable, T : SignedNumeric | |
^ | |
SwiftGlibc.abs:1:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>) -> Tensor<T>' | |
public func abs(_ __x: Int32) -> Int32 | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1136:19: error: referenced declaration 'squared' could not be resolved | |
@derivative(of: squared) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1129:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> () -> Tensor<Scalar>' | |
public func squared() -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1247:17: error: referenced declaration 'sign' could not be resolved | |
@derivative(of: sign) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1242:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>) -> Tensor<T>' | |
public func sign<T: Numeric>(_ x: Tensor<T>) -> Tensor<T> { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1608:17: error: referenced declaration 'squaredDifference' could not be resolved | |
@derivative(of: squaredDifference) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1603:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func squaredDifference<T: TensorFlowNumeric>(_ x: Tensor<T>, _ y: Tensor<T>) -> Tensor<T> { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1631:17: error: referenced declaration 'max' could not be resolved | |
@derivative(of: max) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1626:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func max<T>(_ lhs: Tensor<T>, _ rhs: Tensor<T>) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1648:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func max<T>(_ lhs: T, _ rhs: Tensor<T>) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1655:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func max<T>(_ lhs: Tensor<T>, _ rhs: T) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
Swift.max:1:24: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
@inlinable public func max<T>(_ x: T, _ y: T) -> T where T : Comparable | |
^ | |
Swift.max:1:24: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
@inlinable public func max<T>(_ x: T, _ y: T, _ z: T, _ rest: T...) -> T where T : Comparable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1668:17: error: referenced declaration 'min' could not be resolved | |
@derivative(of: min) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1663:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func min<T>(_ lhs: Tensor<T>, _ rhs: Tensor<T>) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1685:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func min<T>(_ lhs: T, _ rhs: Tensor<T>) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1692:13: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
public func min<T>(_ lhs: Tensor<T>, _ rhs: T) -> Tensor<T> where T: Numeric & Comparable { | |
^ | |
Swift.min:1:24: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
@inlinable public func min<T>(_ x: T, _ y: T) -> T where T : Comparable | |
^ | |
Swift.min:1:24: note: candidate global function does not have type equal to or less constrained than '<T where T : TensorFlowFloatingPoint, T : TensorFlowScalar> (Tensor<T>, Tensor<T>) -> Tensor<T>' | |
@inlinable public func min<T>(_ x: T, _ y: T, _ z: T, _ rest: T...) -> T where T : Comparable | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2038:19: error: referenced declaration 'max(squeezingAxes:)' could not be resolved | |
@derivative(of: max(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1866:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1876:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1886:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2052:19: error: referenced declaration 'min(squeezingAxes:)' could not be resolved | |
@derivative(of: min(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1895:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1905:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1915:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2082:19: error: referenced declaration 'max(alongAxes:)' could not be resolved | |
@derivative(of: max(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1977:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1988:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1999:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func max(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2094:19: error: referenced declaration 'min(alongAxes:)' could not be resolved | |
@derivative(of: min(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1945:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1956:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:1967:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func min(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2542:19: error: referenced declaration 'sum(alongAxes:)' could not be resolved | |
@derivative(of: sum(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2151:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2161:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2171:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2548:19: error: referenced declaration 'sum(squeezingAxes:)' could not be resolved | |
@derivative(of: sum(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2116:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2126:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2136:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2556:19: error: referenced declaration 'sum(alongAxes:)' could not be resolved | |
@derivative(of: sum(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2151:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2161:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2171:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2564:19: error: referenced declaration 'sum(squeezingAxes:)' could not be resolved | |
@derivative(of: sum(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2116:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2126:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2136:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func sum(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2582:19: error: referenced declaration 'mean(alongAxes:)' could not be resolved | |
@derivative(of: mean(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2287:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2298:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2309:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2588:19: error: referenced declaration 'mean(squeezingAxes:)' could not be resolved | |
@derivative(of: mean(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2251:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2261:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2271:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2598:19: error: referenced declaration 'mean(alongAxes:)' could not be resolved | |
@derivative(of: mean(alongAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2287:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2298:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2309:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(alongAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2617:19: error: referenced declaration 'mean(squeezingAxes:)' could not be resolved | |
@derivative(of: mean(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2251:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2261:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2271:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> ([Int]) -> Tensor<Scalar>' | |
public func mean(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2639:19: error: referenced declaration 'cumulativeSum' could not be resolved | |
@derivative(of: cumulativeSum) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2416:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>, Bool, Bool) -> Tensor<Scalar>' | |
public func cumulativeSum( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2455:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>, Bool, Bool) -> Tensor<Scalar>' | |
public func cumulativeSum( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2654:19: error: referenced declaration 'cumulativeProduct' could not be resolved | |
@derivative(of: cumulativeProduct) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2491:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>, Bool, Bool) -> Tensor<Scalar>' | |
public func cumulativeProduct( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2530:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>, Bool, Bool) -> Tensor<Scalar>' | |
public func cumulativeProduct( | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2676:19: error: referenced declaration 'product(squeezingAxes:)' could not be resolved | |
@derivative(of: product(squeezingAxes:)) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2183:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func product(squeezingAxes axes: Tensor<Int32>) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2194:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func product(squeezingAxes axes: [Int]) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:2205:15: note: candidate instance method does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>) -> (Tensor<Int32>) -> Tensor<Scalar>' | |
public func product(squeezingAxes axes: Int...) -> Tensor { | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:3059:17: error: referenced declaration 'matmul' could not be resolved | |
@derivative(of: matmul) | |
^ | |
/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:3043:13: note: candidate global function does not have type equal to or less constrained than '<Scalar where Scalar : TensorFlowFloatingPoint, Scalar : TensorFlowScalar> (Tensor<Scalar>, transposed: Bool, Tensor<Scalar>, transposed: Bool) -> Tensor<Scalar>' | |
public func matmul<Scalar: Numeric>( | |
^ | |
swift-frontend: /github/workspace/swift-language-git/src/swift/lib/Sema/CSApply.cpp:5025: swift::Expr *(anonymous namespace)::ExprRewriter::walkToExprPost(swift::Expr *): Assertion `expr == ExprStack.back()' failed. | |
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace. | |
Stack dump: | |
0. Program arguments: /usr/lib/swift-git/bin/swift-frontend -frontend -c /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/BackwardsCompatibility.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Bindings/EagerExecution.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Bindings/RawOpsAugmented.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Bindings/RawOpsDispatching.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Bindings/RawOpsGenerated.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Bindings/TFTensorOperation.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Context.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/ArrayOps.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/BroadcastingPullback.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/CopyableToDevice.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DataTypes.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/DifferentialOperators.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/ElementaryFunctions.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/EuclideanDifferentiable.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Execution.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/KeyPathIterable.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorContext.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorOperation.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorShapeInference.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorTFFunctionBuilder.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorTrace.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/LazyTensorTraceCache.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/MixedPrecision.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/PointwiseMultiplicative.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/PythonConversion.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Runtime.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/ShapedArray.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/StringTensor.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Tensor.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/TensorGroup.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/TensorHandle.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/TensorShape.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Threading.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/Utilities.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Core/VectorProtocol.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/Algorithms.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/Backend.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/Collatable.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/NonuniformTrainingEpochs.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/Sampling.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/Slices.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Epochs/TrainingEpochs.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Exports.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Freezable.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Initializers.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layer.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Convolutional.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Core.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dense.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Dropout.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Embedding.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Initialization.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Morphological.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Normalization.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Pooling.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Recurrent.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Sequential.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Layers/Upsampling.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Loss.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Basic.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Comparison.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Dataset.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Image.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/LinearAlgebra.swift -primary-file /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/NN.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/MomentumBased.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/Optimizer.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Optimizers/SGD.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/StdlibExtensions.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/CrossReplicaSum.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/DeviceScope.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/APIs/RawOpsManual.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/Device.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/RawOpsXLAGenerated.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/XLAScalarType.swift /SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/X10/XLATensor.swift -supplementary-output-file-map /tmp/supplementaryOutputs-20c25a -target x86_64-unknown-linux-gnu -disable-objc-interop -I /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D DEFAULT_BACKEND_EAGER -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/SwiftFusion/.build/checkouts/swift-numerics/Sources/_NumericsShims/include/module.modulemap -Xcc -I -Xcc /SwiftFusion/.build/checkouts/swift-numerics/Sources/_NumericsShims/include -Xcc -fmodule-map-file=/SwiftFusion/.build/checkouts/swift-apis/Sources/CX10Modules/include/module.modulemap -Xcc -I -Xcc /SwiftFusion/.build/checkouts/swift-apis/Sources/CX10Modules/include -Xcc -fmodule-map-file=/SwiftFusion/.build/checkouts/swift-apis/Sources/CTensorFlow/include/module.modulemap -Xcc -I -Xcc /SwiftFusion/.build/checkouts/swift-apis/Sources/CTensorFlow/include -Xcc -I/usr/include/tensorflow -parse-as-library -module-name TensorFlow -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/Basic.swift.o -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/Comparison.swift.o -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/Dataset.swift.o -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/Image.swift.o -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/LinearAlgebra.swift.o -o /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/TensorFlow.build/Operators/Math.swift.o -index-store-path /SwiftFusion/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules | |
1. Swift version 5.4-dev (LLVM 3bb55ca4ac62528, Swift 6e0524042685283) | |
2. While evaluating request TypeCheckSourceFileRequest(source_file "/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift") | |
3. While evaluating request TypeCheckFunctionBodyRequest(TensorFlow.(file).Tensor extension._vjpSqrt@/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:59:24) | |
4. While type-checking statement at [/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:61:54 - line:64:3] RangeText="{ | |
let value = Tensor.sqrt(x) | |
return (value, { v in v / (2 * value) }) | |
" | |
5. While type-checking statement at [/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:63:5 - line:63:44] RangeText="return (value, { v in v / (2 * value) }" | |
6. While type-checking expression at [/SwiftFusion/.build/checkouts/swift-apis/Sources/TensorFlow/Operators/Math.swift:63:12 - line:63:44] RangeText="(value, { v in v / (2 * value) }" | |
#0 0x0000563a4bc4c664 (/usr/lib/swift-git/bin/swift-frontend+0x5aa8664) | |
#1 0x0000563a4bc4a22e (/usr/lib/swift-git/bin/swift-frontend+0x5aa622e) | |
#2 0x0000563a4bc4c845 (/usr/lib/swift-git/bin/swift-frontend+0x5aa8845) | |
#3 0x00007fc80a64e960 __restore_rt (/usr/lib/libpthread.so.0+0x13960) | |
#4 0x00007fc80a0d1ef5 raise (/usr/lib/libc.so.6+0x3cef5) | |
#5 0x00007fc80a0bb862 abort (/usr/lib/libc.so.6+0x26862) | |
#6 0x00007fc80a0bb747 _nl_load_domain.cold (/usr/lib/libc.so.6+0x26747) | |
#7 0x00007fc80a0ca646 (/usr/lib/libc.so.6+0x35646) | |
#8 0x0000563a47bee016 (/usr/lib/swift-git/bin/swift-frontend+0x1a4a016) | |
#9 0x0000563a47fe54d6 (/usr/lib/swift-git/bin/swift-frontend+0x1e414d6) | |
#10 0x0000563a47be72f9 (/usr/lib/swift-git/bin/swift-frontend+0x1a432f9) | |
#11 0x0000563a47be7096 (/usr/lib/swift-git/bin/swift-frontend+0x1a43096) | |
#12 0x0000563a47ad4776 (/usr/lib/swift-git/bin/swift-frontend+0x1930776) | |
#13 0x0000563a47ad443f (/usr/lib/swift-git/bin/swift-frontend+0x193043f) | |
#14 0x0000563a47b9ab54 (/usr/lib/swift-git/bin/swift-frontend+0x19f6b54) | |
#15 0x0000563a47b9985f (/usr/lib/swift-git/bin/swift-frontend+0x19f585f) | |
#16 0x0000563a47b97629 (/usr/lib/swift-git/bin/swift-frontend+0x19f3629) | |
#17 0x0000563a47b9991c (/usr/lib/swift-git/bin/swift-frontend+0x19f591c) | |
#18 0x0000563a47b98a8f (/usr/lib/swift-git/bin/swift-frontend+0x19f4a8f) | |
#19 0x0000563a47b97ef8 (/usr/lib/swift-git/bin/swift-frontend+0x19f3ef8) | |
#20 0x0000563a480dbf39 (/usr/lib/swift-git/bin/swift-frontend+0x1f37f39) | |
#21 0x0000563a480dbd59 (/usr/lib/swift-git/bin/swift-frontend+0x1f37d59) | |
#22 0x0000563a48042bdb (/usr/lib/swift-git/bin/swift-frontend+0x1e9ebdb) | |
#23 0x0000563a48042b92 (/usr/lib/swift-git/bin/swift-frontend+0x1e9eb92) | |
#24 0x0000563a47bcbe18 (/usr/lib/swift-git/bin/swift-frontend+0x1a27e18) | |
#25 0x0000563a47bccee5 (/usr/lib/swift-git/bin/swift-frontend+0x1a28ee5) | |
#26 0x0000563a47bccd02 (/usr/lib/swift-git/bin/swift-frontend+0x1a28d02) | |
#27 0x0000563a47bcbb28 (/usr/lib/swift-git/bin/swift-frontend+0x1a27b28) | |
#28 0x0000563a47bcbb04 (/usr/lib/swift-git/bin/swift-frontend+0x1a27b04) | |
#29 0x0000563a46d1198a (/usr/lib/swift-git/bin/swift-frontend+0xb6d98a) | |
#30 0x0000563a46d11856 (/usr/lib/swift-git/bin/swift-frontend+0xb6d856) | |
#31 0x0000563a46b85169 (/usr/lib/swift-git/bin/swift-frontend+0x9e1169) | |
#32 0x0000563a46b207ac (/usr/lib/swift-git/bin/swift-frontend+0x97c7ac) | |
#33 0x00007fc80a0bcb25 __libc_start_main (/usr/lib/libc.so.6+0x27b25) | |
#34 0x0000563a46b202be (/usr/lib/swift-git/bin/swift-frontend+0x97c2be) | |
[329/390] Compiling TensorFlow Convolutional.swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment