kind.


Extending existing C++ libraries (e.g., aten)


Lets you register kernels for existing operators
     corresponding to various backends and functionalities by
     specifying the appropriate dispatch keys.


This may come in handy to fill up spotty operator support for a
     feature implemented through a dispatch key. For example.,
* You can add operator support for Meta Tensors (by
  registering function to the "Meta" dispatch key).



This can be done by creating Library class objects of ""IMPL""
     kind.


A tutorial that walks you through some examples on how to use this API
is available on Google Colab.
Warning:
Dispatcher is a complicated PyTorch concept and having a sound
  understanding of Dispatcher is crucial to be able to do anything
  advanced with this API. This blog post is a good starting point to
  learn about Dispatcher.
class torch.library.Library(ns, kind, dispatch_key='')
A class to create libraries that can be used to register new