import torch

from laplace_v3.func_lib import yorick_delta_relu_sq

x = torch.tensor(0.5, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(2., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(0., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(1., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

5e7394292d276d30ea61260b19aea4cbd2fec09c
<mask token>

<mask token>
y.backward()
print(x.grad)
<mask token>
y.backward()
print(x.grad)
<mask token>
y.backward()
print(x.grad)
<mask token>
y.backward()
print(x.grad)

<mask token>
x = torch.tensor(0.5, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(2.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(0.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(1.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

import torch
from laplace_v3.func_lib import yorick_delta_relu_sq
x = torch.tensor(0.5, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(2.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(0.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
x = torch.tensor(1.0, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

import torch

from laplace_v3.func_lib import yorick_delta_relu_sq

x = torch.tensor(0.5, requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(2., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(0., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)

x = torch.tensor(1., requires_grad=True)
y = yorick_delta_relu_sq(x)
y.backward()
print(x.grad)
