|
64 | 64 | kind='ImplementsAttributeArguments'),
|
65 | 65 | Child('DifferentiableArguments',
|
66 | 66 | kind='DifferentiableAttributeArguments'),
|
67 |
| -<<<<<<< HEAD |
68 |
| - # SWIFT_ENABLE_TENSORFLOW |
69 | 67 | Child('DerivativeRegistrationArguments',
|
70 | 68 | kind='DerivativeRegistrationAttributeArguments'),
|
| 69 | + # SWIFT_ENABLE_TENSORFLOW |
71 | 70 | Child('DeprecatedDerivativeRegistrationArguments',
|
72 | 71 | kind='DeprecatedDerivativeRegistrationAttributeArguments'),
|
73 | 72 | # SWIFT_ENABLE_TENSORFLOW END
|
74 |
| -======= |
75 |
| - Child('DerivativeArguments', |
76 |
| - kind='DerivativeRegistrationAttributeArguments'), |
77 |
| ->>>>>>> upstream_20191216 |
78 | 73 | Child('NamedAttributeString',
|
79 | 74 | kind='NamedAttributeStringArgument'),
|
80 | 75 | ], description='''
|
|
306 | 301 | Child('TrailingComma', kind='CommaToken', is_optional=True),
|
307 | 302 | ]),
|
308 | 303 |
|
309 |
| -<<<<<<< HEAD |
310 | 304 | # An optionally qualified declaration name.
|
311 | 305 | # qualified-decl-name ->
|
312 | 306 | # base-type? '.'? (identifier | operator) decl-name-arguments?
|
|
344 | 338 | The argument labels of the referenced function, optionally
|
345 | 339 | specified.
|
346 | 340 | '''),
|
347 |
| -======= |
| 341 | + ]), |
| 342 | + |
348 | 343 | # The argument of the derivative registration attribute
|
349 |
| - # '@derivative(of: ...)'. |
| 344 | + # '@derivative(of: ...)' and the transpose registration attribute |
| 345 | + # '@transpose(of: ...)'. |
350 | 346 | # derivative-registration-attr-arguments ->
|
351 | 347 | # 'of' ':' func-decl-name ','? differentiation-params-clause?
|
352 | 348 | Node('DerivativeRegistrationAttributeArguments', kind='Syntax',
|
353 | 349 | description='''
|
354 |
| - The arguments for the '@derivative(of:)' attribute: the 'of:' label, |
355 |
| - the original declaration name, and an optional differentiation |
356 |
| - parameter list. |
| 350 | + The arguments for the '@derivative(of:)' and '@transpose(of:)' |
| 351 | + attributes: the 'of:' label, the original declaration name, and an |
| 352 | + optional differentiation parameter list. |
357 | 353 | ''',
|
358 | 354 | children=[
|
359 | 355 | Child('OfLabel', kind='IdentifierToken', text_choices=['of'],
|
|
367 | 363 | Child('Comma', kind='CommaToken', is_optional=True),
|
368 | 364 | Child('DiffParams', kind='DifferentiationParamsClause',
|
369 | 365 | is_optional=True),
|
370 |
| ->>>>>>> upstream_20191216 |
371 | 366 | ]),
|
372 | 367 |
|
373 | 368 | # func-decl-name -> (identifier | operator) decl-name-arguments?
|
|
392 | 387 | '''),
|
393 | 388 | ]),
|
394 | 389 |
|
395 |
| - # SWIFT_ENABLE_TENSORFLOW |
396 |
| - # The argument of the derivative registration attribute |
397 |
| - # '@derivative(of: ...)' and the transpose registration attribute |
398 |
| - # '@transpose(of: ...)'. |
399 |
| - # derivative-registration-attr-arguments -> |
400 |
| - # 'of' ':' func-decl-name ','? differentiation-params-clause? |
401 |
| - # TODO(TF-1009): Add syntax support for dot-separated qualified names in |
402 |
| - # `@transpose(of:)` attributes. |
403 |
| - Node('DerivativeRegistrationAttributeArguments', kind='Syntax', |
404 |
| - description=''' |
405 |
| - The arguments for the '@derivative(of:)' and '@transpose(of:)' |
406 |
| - attributes: the 'of:' label, the original declaration name, and an |
407 |
| - optional differentiation parameter list. |
408 |
| - ''', |
409 |
| - children=[ |
410 |
| - Child('OfLabel', kind='IdentifierToken', text_choices=['of'], |
411 |
| - description='The "of" label.'), |
412 |
| - Child('Colon', kind='ColonToken', description=''' |
413 |
| - The colon separating the "of" label and the original |
414 |
| - declaration name. |
415 |
| - '''), |
416 |
| - Child('OriginalDeclName', kind='QualifiedDeclName', |
417 |
| - description='The referenced original declaration name.'), |
418 |
| - Child('Comma', kind='CommaToken', is_optional=True), |
419 |
| - Child('DiffParams', kind='DifferentiationParamsClause', |
420 |
| - is_optional=True), |
421 |
| - ]), |
422 |
| - |
423 | 390 | # SWIFT_ENABLE_TENSORFLOW
|
424 | 391 | # The argument of the deprecated derivative registration attribute
|
425 | 392 | # '@differentiating'.
|
|
438 | 405 | Child('DiffParams', kind='DifferentiationParamsClause',
|
439 | 406 | is_optional=True),
|
440 | 407 | ]),
|
| 408 | + # SWIFT_ENABLE_TENSORFLOW END |
441 | 409 | ]
|
0 commit comments