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

TensorFlow: clean up the last of the whitespace issues #926

Merged
merged 1 commit into from
May 1, 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 Sources/TensorFlow/Layers/Dropout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public struct Dropout<Scalar: TensorFlowFloatingPoint>: ParameterlessLayer {
/// The noise added always has mean zero, but has a configurable standard deviation.
public struct GaussianNoise<Scalar: TensorFlowFloatingPoint>: ParameterlessLayer {
@noDerivative public let standardDeviation: Tensor<Scalar>

/// Creates a Gaussian noise layer
///
/// - Parameter standardDeviation: Standard deviation of the Guassian distribution
public init(standardDeviation: Scalar) {
self.standardDeviation = Tensor<Scalar>(standardDeviation)
}

/// Returns a tensor obtained by adding noise to `input`
@differentiable
public func callAsFunction(_ input: Tensor<Scalar>) -> Tensor<Scalar> {
Expand Down