Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Fix ParameterlessLayer conformance. #1035

Merged
merged 1 commit into from
Jul 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tests/TensorFlowTests/LayerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import XCTest
@testable import TensorFlow

fileprivate struct Sigmoid<Scalar: TensorFlowFloatingPoint>: ParameterlessLayer {
public init() {}
typealias TangentVector = EmptyTangentVector

@differentiable
public func callAsFunction(_ input: Tensor<Scalar>) -> Tensor<Scalar> {
func callAsFunction(_ input: Tensor<Scalar>) -> Tensor<Scalar> {
sigmoid(input)
}
}
Expand Down