We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f8a24 commit f062089Copy full SHA for f062089
python/triton/compiler/code_generator.py
@@ -1,7 +1,6 @@
1
import ast
2
import inspect
3
import re
4
-import sys
5
import warnings
6
import os
7
import textwrap
@@ -1176,17 +1175,6 @@ def visit_BoolOp(self, node: ast.BoolOp):
1176
1175
1177
_method_name_for_bool_op: Dict[Type[ast.boolop], str] = {ast.And: 'logical_and', ast.Or: 'logical_or'}
1178
1179
- if sys.version_info < (3, 8):
1180
-
1181
- def visit_NameConstant(self, node):
1182
- return constexpr(node.value)
1183
1184
- def visit_Num(self, node):
1185
- return constexpr(node.n)
1186
1187
- def visit_Str(self, node):
1188
- return constexpr(ast.literal_eval(node))
1189
1190
def visit_Attribute(self, node):
1191
lhs = self.visit(node.value)
1192
if _is_triton_tensor(lhs) and node.attr == "T":
0 commit comments