Home
last modified time | relevance | path

Searched refs:compute_result_and_gradient (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/pytorch/test/
H A Dtest_mps.py8681 def compute_result_and_gradient(reduction, target_dtype): function
8699 result_long, grad_long = compute_result_and_gradient(reduction, torch.long)
8700 result_byte, grad_byte = compute_result_and_gradient(reduction, torch.uint8)
H A Dtest_nn.py11606 def compute_result_and_gradient(reduction, target_dtype): function
11618 result_long, grad_long = compute_result_and_gradient(reduction, torch.long)
11619 result_byte, grad_byte = compute_result_and_gradient(reduction, torch.uint8)