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