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

Commit

Permalink
Revert "Update variable name to reflect documentation description"
Browse files Browse the repository at this point in the history
This reverts commit bd7277e.
  • Loading branch information
jon-tow committed Jun 28, 2019
1 parent cb06b5c commit 072a986
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/TensorFlow/Layers/Cropping.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public struct Cropping1D<Scalar: TensorFlowFloatingPoint>: Layer {
self.cropping = cropping
}

/// Creates a cropping layer to trim the temporal dimension.
///
/// - Parameter cropping: An integer describing how many units should be symmetrically trimmed
/// off the beginning and end of the cropping dimension. i.e. `(cropping, cropping)`.
public init(cropping: Int = 1) {
self.cropping = (cropping, cropping)
}

/// Returns the cropped input tensor according to the `cropping` dimensions specified
/// at initialization.
///
Expand Down

0 comments on commit 072a986

Please sign in to comment.