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
I tried to implement my own module and when attempting to read
training property I get access violation error
from torchsharp
publicvirtualbooltraining{
get
{boolresult= NativeMethods.THSNN_Module_is_training(handle);
CheckForErrors();returnresult;}}
From my module:
publicoverride Tensor forward(Tensorinput){Tensorweight=training?_weightMu+_weightSigma*_weightEpsilon:_weightMu;Tensorbias= _biasMu is not null?(training?_biasMu+_biasSigma*_biasEpsilon:_biasMu):null;return torch.nn.functional.linear(input, weight, bias);}
I wanted to inherit linear but someone made it sealed for some reason but thats another issue.
The text was updated successfully, but these errors were encountered:
I tried to implement my own module and when attempting to read
training property I get access violation error
from torchsharp
From my module:
The text was updated successfully, but these errors were encountered: