@@ -576,7 +576,7 @@ func _vjpLog1p<T: TensorFlowFloatingPoint>(
576
576
( log1p ( x) , { v in Raw . xdivy ( v, 1 + x) } )
577
577
}
578
578
579
- /// Returns `sin` of the specified tensor element-wise.
579
+ /// Returns the sine of the specified tensor element-wise.
580
580
@inlinable
581
581
@differentiable ( vjp: _vjpSin ( _: ) )
582
582
public func sin< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -590,7 +590,7 @@ internal func _vjpSin<T: TensorFlowFloatingPoint>(
590
590
( sin ( x) , { v in v * cos( x) } )
591
591
}
592
592
593
- /// Returns `cos` of the specified tensor element-wise.
593
+ /// Returns the cosine of the specified tensor element-wise.
594
594
@inlinable
595
595
@differentiable ( vjp: _vjpCos ( _: ) )
596
596
public func cos< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -604,7 +604,7 @@ internal func _vjpCos<T: TensorFlowFloatingPoint>(
604
604
( cos ( x) , { v in - v * sin( x) } )
605
605
}
606
606
607
- /// Returns `tan` of the specified tensor element-wise.
607
+ /// Returns the tangent of the specified tensor element-wise.
608
608
@inlinable
609
609
@differentiable ( vjp: _vjpTan ( _: ) )
610
610
public func tan< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -633,7 +633,7 @@ internal func _vjpSinh<T: TensorFlowFloatingPoint>(
633
633
( sinh ( x) , { v in v * cosh( x) } )
634
634
}
635
635
636
- /// Returns `cosh` of the specified tensor element-wise.
636
+ /// Returns the hyperbolic cosine of the specified tensor element-wise.
637
637
@inlinable
638
638
@differentiable ( vjp: _vjpCosh ( _: ) )
639
639
public func cosh< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -647,7 +647,7 @@ internal func _vjpCosh<T: TensorFlowFloatingPoint>(
647
647
( cosh ( x) , { v in v * sinh( x) } )
648
648
}
649
649
650
- /// Returns `tanh` of the specified tensor element-wise.
650
+ /// Returns the hyperbolic tangent of the specified tensor element-wise.
651
651
@inlinable
652
652
@differentiable ( vjp: _vjpTanh ( _: ) )
653
653
public func tanh< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -662,7 +662,7 @@ internal func _vjpTanh<T: TensorFlowFloatingPoint>(
662
662
return ( value, { v in v * ( 1 - value. squared ( ) ) } )
663
663
}
664
664
665
- /// Returns `acos` of the specified tensor element-wise.
665
+ /// Returns the inverse cosine of the specified tensor element-wise.
666
666
@inlinable
667
667
@differentiable ( vjp: _vjpAcos ( _: ) )
668
668
public func acos< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -676,7 +676,7 @@ internal func _vjpAcos<T: TensorFlowFloatingPoint>(
676
676
( acos ( x) , { v in - v / sqrt( 1 - x. squared ( ) ) } )
677
677
}
678
678
679
- /// Returns `asin` of the specified tensor element-wise.
679
+ /// Returns the inverse sine of the specified tensor element-wise.
680
680
@inlinable
681
681
@differentiable ( vjp: _vjpAsin ( _: ) )
682
682
public func asin< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -690,7 +690,7 @@ internal func _vjpAsin<T: TensorFlowFloatingPoint>(
690
690
( asin ( x) , { v in v / sqrt( 1 - x. squared ( ) ) } )
691
691
}
692
692
693
- /// Returns `atan` of the specified tensor element-wise.
693
+ /// Returns the inverse tangent of the specified tensor element-wise.
694
694
@inlinable
695
695
@differentiable ( vjp: _vjpAtan ( _: ) )
696
696
public func atan< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -704,7 +704,7 @@ internal func _vjpAtan<T: TensorFlowFloatingPoint>(
704
704
( atan ( x) , { v in v / ( 1 + x. squared ( ) ) } )
705
705
}
706
706
707
- /// Returns `acosh` of the specified tensor element-wise.
707
+ /// Returns the inverse hyperbolic cosine of the specified tensor element-wise.
708
708
@inlinable
709
709
@differentiable ( vjp: _vjpAcosh ( _: ) )
710
710
public func acosh< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -718,7 +718,7 @@ internal func _vjpAcosh<T: TensorFlowFloatingPoint>(
718
718
( acosh ( x) , { v in v / asinh( x) } )
719
719
}
720
720
721
- /// Returns `asinh` of the specified tensor element-wise.
721
+ /// Returns the inverse hyperbolic sine of the specified tensor element-wise.
722
722
@inlinable
723
723
@differentiable ( vjp: _vjpAsinh ( _: ) )
724
724
public func asinh< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -732,7 +732,7 @@ internal func _vjpAsinh<T: TensorFlowFloatingPoint>(
732
732
( asinh ( x) , { v in v / acosh( x) } )
733
733
}
734
734
735
- /// Returns `atanh` of the specified tensor element-wise.
735
+ /// Returns the inverse hyperbolic tangent of the specified tensor element-wise.
736
736
@inlinable
737
737
@differentiable ( vjp: _vjpAtanh ( _: ) )
738
738
public func atanh< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -809,7 +809,7 @@ internal func _vjpRsqrt<T: TensorFlowFloatingPoint>(
809
809
return ( value, { v in - v / ( 2 * pow( x, 3 / 2 ) ) } )
810
810
}
811
811
812
- /// Returns `exp` of the specified tensor element-wise.
812
+ /// Returns the exponential of the specified tensor element-wise.
813
813
@inlinable
814
814
@differentiable ( vjp: _vjpExp ( _: ) )
815
815
public func exp< T: TensorFlowFloatingPoint > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -895,6 +895,8 @@ internal func _vjpFloor<T: TensorFlowFloatingPoint>(
895
895
( floor ( x) , { _ in Tensor ( 0 ) . broadcasted ( like: x) } )
896
896
}
897
897
898
+ /// Returns an indication of the sign of the specified tensor element-wise.
899
+ /// Specifically, computes `y = sign(x) = -1` if `x < 0`; 0 if `x == 0`; 1 if `x > 0`.
898
900
@inlinable
899
901
@differentiable ( vjp: _vjpSign ( _: ) where T: TensorFlowFloatingPoint)
900
902
public func sign< T: Numeric > ( _ x: Tensor < T > ) -> Tensor < T > {
@@ -1036,7 +1038,7 @@ func _vjpLeakyRelu<T: TensorFlowFloatingPoint>(
1036
1038
} )
1037
1039
}
1038
1040
1039
- /// Returns `relu` of the specified tensor element-wise.
1041
+ /// Returns a tensor by applying the ReLU activation function to the specified tensor element-wise.
1040
1042
/// Specifically, computes `max(0, x)`.
1041
1043
@inlinable
1042
1044
@differentiable ( vjp: _vjpRelu ( _: ) )
0 commit comments