:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespacetorch_1_1nn_1_1functional_1abfccd00762b084cb116c3a53c3386c83: Function torch::nn::functional::one_hot ======================================= - Defined in :ref:`file_torch_csrc_api_include_torch_nn_functional_embedding.h` Function Documentation ---------------------- .. doxygenfunction:: torch::nn::functional::one_hot(const Tensor&, int64_t)