File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
stdlib/public/Differentiation Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ extension ${Self}: Differentiable {
4242 public typealias TangentVector = ${ Self}
4343
4444 ${ Availability ( bits) }
45+ @inlinable
4546 public mutating func move( by offset: TangentVector ) {
4647 self += offset
4748 }
@@ -95,15 +96,15 @@ extension ${Self} {
9596/// Derivatives of standard unary operators.
9697${ Availability ( bits) }
9798extension ${ Self} {
98- @usableFromInline
99+ @inlinable
99100 @_transparent
100101 @derivative ( of: - )
101102 static func _vjpNegate( x: ${ Self} )
102103 -> ( value: ${ Self} , pullback: ( ${ Self} ) -> ${ Self} ) {
103104 return ( - x, { v in - v } )
104105 }
105106
106- @usableFromInline
107+ @inlinable
107108 @_transparent
108109 @derivative ( of: - )
109110 static func _jvpNegate( x: ${ Self} )
You can’t perform that action at this time.
0 commit comments