You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see the precision diff in the two model, why? please
and the size of the accuracy gap will change with input
In this sampleModel,the result only have 0.001 diff, but in my another mask2fomer model, still get this problem
""Detail Only Test""
class MLP(nn.Module):
""" Very simple multi-layer perceptron (also called FFN)"""
def __init__(self, input_dim, hidden_dim, output_dim, num_layers):
super().__init__()
self.num_layers = num_layers
h = [hidden_dim] * (num_layers - 1)
self.liner = nn.Linear(256,256)
def forward(self, x):
a = self.liner(x)
b = F.relu(a)
relu = F.relu(x)
return x
I had relaunch more than one times, you can see the value will get a little change when processed by liner function
after using nn.Linear() one more times, accuracy problems will be exacerbated
It would also help to create the issue in pytorch repo. I guess it could be an issue in pytorch-to-onnx exporter, or in onnxruntime implementation, or a potential mismatch in the ONNX op spec.
But it is a bit weird, in that it uses only a linear layer and Relu ... both of which must be very well tested by now in all 3 components.
System information
My Sample Code:Just only have FFN, i had cal the output from pth or onnx model,
then cal the np.mean from output:
Mistake image, i had deleted that
**this image has mistake, do not notice it""
You can see the precision diff in the two model, why? please
and the size of the accuracy gap will change with input
In this sampleModel,the result only have 0.001 diff, but in my another mask2fomer model, still get this problem
""Detail Only Test""
class MLP(nn.Module):
""" Very simple multi-layer perceptron (also called FFN)"""
I had relaunch more than one times, you can see the value will get a little change when processed by liner function
after using nn.Linear() one more times, accuracy problems will be exacerbated
the zip has a tensor i had saved: x.pt
The text was updated successfully, but these errors were encountered: