Skip to content

Commit

Permalink
Minor // MARK: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Bhalley committed May 8, 2021
1 parent a95486d commit c260036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

// MARK: Listing 3-14. Demonstrate an if-else statement

let marks = 75
if marks < 60 {
print("Poor")
Expand All @@ -18,6 +19,7 @@ if marks < 60 {
print()

// MARK: Listing 3-15. Demonstrate the switch statement

switch marks {
case let x where x < 60:
print("Poor")
Expand Down
1 change: 1 addition & 0 deletions Sources/TensorFlowBasics/FromScratchForResearch/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ struct DenseLayer<Scalar: TensorFlowFloatingPoint>: Layer {
}

// MARK: Listing 4-12. Define the swish activation function

@differentiable
func swishActivation<Scalar: TensorFlowFloatingPoint>(_ input: Tensor<Scalar>) -> Tensor<Scalar> {
input * sigmoid(input)
Expand Down

0 comments on commit c260036

Please sign in to comment.