Bases: InductorPass
This class is a wrapper for a callable that automatically provides an implementation of the UUID.
Source code in vllm/compilation/inductor_pass.py
  
  Bases: Torch25CustomGraphPass
A custom graph pass that uses a hash of its source as the UUID. This is defined as a convenience and should work in most cases.
Source code in vllm/compilation/inductor_pass.py
  staticmethod  ¶
  Utility method to hash a dictionary, can alternatively be used for uuid. :return: A sha256 hash of the json rep of the dictionary.
Source code in vllm/compilation/inductor_pass.py
  staticmethod  ¶
  Utility method to hash the sources of functions or objects. :param srcs: strings or objects to add to the hash. Objects and functions have their source inspected. :return:
Source code in vllm/compilation/inductor_pass.py
  
 Source code in vllm/compilation/inductor_pass.py
   
  Applies a FakeTensorMode context. This is useful when you don't want to create or run things with real tensors.
Source code in vllm/compilation/inductor_pass.py
  
 get_pass_context() -> PassContext
 
 pass_context(runtime_shape: int | None)
A context manager that stores the current pass context, usually it is a list of sizes to specialize.