Skip to content

Commit 5b04de2

Browse files
committed
Fix utils/gyb_syntax_support/AttributeNodes.py conflicts.
1 parent 7c78cca commit 5b04de2

File tree

1 file changed

+9
-41
lines changed

1 file changed

+9
-41
lines changed

utils/gyb_syntax_support/AttributeNodes.py

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,12 @@
6464
kind='ImplementsAttributeArguments'),
6565
Child('DifferentiableArguments',
6666
kind='DifferentiableAttributeArguments'),
67-
<<<<<<< HEAD
68-
# SWIFT_ENABLE_TENSORFLOW
6967
Child('DerivativeRegistrationArguments',
7068
kind='DerivativeRegistrationAttributeArguments'),
69+
# SWIFT_ENABLE_TENSORFLOW
7170
Child('DeprecatedDerivativeRegistrationArguments',
7271
kind='DeprecatedDerivativeRegistrationAttributeArguments'),
7372
# SWIFT_ENABLE_TENSORFLOW END
74-
=======
75-
Child('DerivativeArguments',
76-
kind='DerivativeRegistrationAttributeArguments'),
77-
>>>>>>> upstream_20191216
7873
Child('NamedAttributeString',
7974
kind='NamedAttributeStringArgument'),
8075
], description='''
@@ -306,7 +301,6 @@
306301
Child('TrailingComma', kind='CommaToken', is_optional=True),
307302
]),
308303

309-
<<<<<<< HEAD
310304
# An optionally qualified declaration name.
311305
# qualified-decl-name ->
312306
# base-type? '.'? (identifier | operator) decl-name-arguments?
@@ -344,16 +338,18 @@
344338
The argument labels of the referenced function, optionally
345339
specified.
346340
'''),
347-
=======
341+
]),
342+
348343
# The argument of the derivative registration attribute
349-
# '@derivative(of: ...)'.
344+
# '@derivative(of: ...)' and the transpose registration attribute
345+
# '@transpose(of: ...)'.
350346
# derivative-registration-attr-arguments ->
351347
# 'of' ':' func-decl-name ','? differentiation-params-clause?
352348
Node('DerivativeRegistrationAttributeArguments', kind='Syntax',
353349
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.
357353
''',
358354
children=[
359355
Child('OfLabel', kind='IdentifierToken', text_choices=['of'],
@@ -367,7 +363,6 @@
367363
Child('Comma', kind='CommaToken', is_optional=True),
368364
Child('DiffParams', kind='DifferentiationParamsClause',
369365
is_optional=True),
370-
>>>>>>> upstream_20191216
371366
]),
372367

373368
# func-decl-name -> (identifier | operator) decl-name-arguments?
@@ -392,34 +387,6 @@
392387
'''),
393388
]),
394389

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-
423390
# SWIFT_ENABLE_TENSORFLOW
424391
# The argument of the deprecated derivative registration attribute
425392
# '@differentiating'.
@@ -438,4 +405,5 @@
438405
Child('DiffParams', kind='DifferentiationParamsClause',
439406
is_optional=True),
440407
]),
408+
# SWIFT_ENABLE_TENSORFLOW END
441409
]

0 commit comments

Comments
 (0)