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

Remove @differentiable attribute from Layer.inferring(from:). #575

Merged
merged 1 commit into from
Dec 6, 2019
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 Sources/TensorFlow/Layer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ public extension Layer {
///
/// - Parameter input: The input to the layer.
/// - Returns: The inference output.
@differentiable
func inferring(from input: Input) -> Output {
withLearningPhase(LearningPhase.inference) { self(input) }
}

// TODO(rxwei): Remove this custom VJP once differentiation supports currying.
// TODO(TF-433, SR-11882): Remove this custom derivative when
// differentiation supports `rethrows` functions and currying.
@derivative(of: inferring(from:))
@usableFromInline
internal func _vjpInferring(from input: Input)
Expand Down