error
86_Matmul_Divide_GELU.py
started
2026-05-02T22:41:33Z
reference PyTorch source (the prompt the agent sees)
import torch
import torch.nn as nn
class Model(nn.Module):
"""
A model that performs a matrix multiplication, divides by a scalar, and applies GELU activation.
"""
def __init__(self, input_size, output_size, divisor):
super(Model, self).__init__()
self.linear = nn.Linear(input_size, output_size)
self.divisor = divisor
def forward(self, x):
"""
Args:
x (torch.Tensor): Input tensor of shape (batch_size, input_size).
Returns:
torch.Tensor: Output tensor of shape (batch_size, output_size).
"""
x = self.linear(x)
x = x / self.divisor
x = torch.nn.functional.gelu(x)
return x
batch_size = 1024
input_size = 8192
output_size = 8192
divisor = 10.0
def get_inputs():
return [torch.rand(batch_size, input_size)]
def get_init_inputs():
return [input_size, output_size, divisor]turn 07200.0s turn · 7200.0s LLM · 0.0s tools
feedbackLLM call failed: _WorkItemTimeout: work item exceeded soft timeout budget