Files
pytorch/torch/csrc/jit/frontend/parser_constants.h
PyTorch MergeBot 46419c7899 Revert "[Relandx2] Rewrite the guts of torch::jit::Lexer to speed it up (#152372)"
This reverts commit 7ce6f632142b65849fa33f325c90a24bace2c130.

Reverted https://github.com/pytorch/pytorch/pull/152372 on behalf of https://github.com/malfet due to Looks like it broke distributed this time around, see f05d3e5019/1 ([comment](https://github.com/pytorch/pytorch/pull/152372#issuecomment-2837426497))
2025-04-29 04:37:40 +00:00

7 lines
151 B
C++

#pragma once
namespace torch::jit {
static constexpr const char* valid_single_char_tokens =
"+-*/%@()[]:,={}><.?!&^|~";
} // namespace torch::jit