:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespacetorch_1a9295be4f0eef11ed130b91022dd16954: Function torch::ones_like ========================= - Defined in :ref:`file_torch_csrc_autograd_generated_variable_factories.h` Function Documentation ---------------------- .. doxygenfunction:: torch::ones_like(const at::Tensor&, at::TensorOptions, ::std::optional) :project: PyTorch