:github_url: https://github.com/pytorch/pytorch .. _program_listing_file_torch_csrc_api_include_torch_nn_options_adaptive.h: Program Listing for File adaptive.h =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``torch/csrc/api/include/torch/nn/options/adaptive.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include namespace torch::nn { struct TORCH_API AdaptiveLogSoftmaxWithLossOptions { /* implicit */ AdaptiveLogSoftmaxWithLossOptions( int64_t in_features, int64_t n_classes, std::vector cutoffs); TORCH_ARG(int64_t, in_features); TORCH_ARG(int64_t, n_classes); TORCH_ARG(std::vector, cutoffs); TORCH_ARG(double, div_value) = 4.; TORCH_ARG(bool, head_bias) = false; }; } // namespace torch::nn