-
Notifications
You must be signed in to change notification settings - Fork 137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests in https://github.com/tensorflow/swift-apis/blob/master/Tests/DeepLearningTests/LayerTests.swift?
Sources/DeepLearning/Layer.swift
Outdated
@@ -1022,7 +1022,7 @@ public struct GlobalAveragePooling1D<Scalar: TensorFlowFloatingPoint>: Layer { | |||
/// - input: The input to the layer. | |||
/// - context: The contextual information for the layer application, e.g. the current learning | |||
/// phase. | |||
/// - Returns: The output | |||
/// - Returns: The output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add period.
/// - Returns: The output | |
/// - Returns: The output. |
Sources/DeepLearning/Layer.swift
Outdated
/// - input: The input to the layer. | ||
/// - context: The contextual information for the layer application, e.g. the current learning | ||
/// phase. | ||
/// - Returns: The output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add period.
Sources/DeepLearning/Layer.swift
Outdated
/// - Returns: The output | ||
@differentiable | ||
public func applied(to input: Tensor<Scalar>, in _: Context) -> Tensor<Scalar> { | ||
return input.mean(alongAxes: [1,2,3]).reshaped(to: [input.shape[0], input.shape[4]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space after each comma.
return input.mean(alongAxes: [1,2,3]).reshaped(to: [input.shape[0], input.shape[4]]) | |
return input.mean(alongAxes: [1, 2, 3]).reshaped(to: [input.shape[0], input.shape[4]]) |
@rxwei is it okay if i add the tests in another PR? I think most of the conv layers lack a test, So i'll go through them one by one? |
Sure. Sounds good. |
No description provided.