[ { "function_name": "DDPMDeletionLoss.importance_sampling_with_mixture", "file_path": "SISS/losses/ddpm_deletion_loss.py", "function_calls": [ { "function_call_name": "torch.rand", "functionality": "Returns a tensor filled with random numbers from a uniform distribution on the interval [0, 1).", "input": "batch_size", "output": "A tensor of shape (batch_size,) with random values.", "location_or_namespace": "torch" }, { "function_call_name": "torch.empty_like", "functionality": "Returns an uninitialized tensor with the same size as the input tensor.", "input": "all_samples_dict['noisy_latents']", "output": "An uninitialized tensor with the same shape as `all_samples_dict['noisy_latents']`.", "location_or_namespace": "torch" }, { "function_call_name": "unet", "functionality": "The U-Net model that predicts the noise from a noisy input. This is an internal component of the diffusion model.", "input": "defensive_mixture_samples, timesteps, **conditioning, return_dict=False", "output": "A tuple where the first element is the predicted noise tensor.", "location_or_namespace": "" }, { "function_call_name": "torch.sum", "functionality": "Sums the elements of the input tensor along the given dimensions.", "input": "dist_x, dim=sum_dims", "output": "A tensor with the summed values.", "location_or_namespace": "torch" }, { "function_call_name": "torch.exp", "functionality": "Computes the exponential of each element in the input tensor.", "input": "dist_x - dist_a", "output": "A tensor with the element-wise exponential values.", "location_or_namespace": "torch" } ] }, { "function_name": "DDPMDeletionLoss.double_forward_with_neg_del", "file_path": "SISS/losses/ddpm_deletion_loss.py", "function_calls": [ { "function_call_name": "unet", "functionality": "The U-Net model that predicts the noise from a noisy input. This is an internal component of the diffusion model.", "input": "all_samples_dict['noisy_latents'], timesteps, **conditioning, return_dict=False", "output": "A tuple where the first element is the predicted noise tensor.", "location_or_namespace": "" } ] } ]