File size: 2,442 Bytes
6aba0e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | [
{
"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": ""
}
]
}
]
|