C
C#•2mo ago
todde15

Why does my cpup tanks when I am running this script ?

Hi I am fairly new to c# and I am trying to build a ML.NET part of a larger project, but my cpup tanks every time I call this script, have I done something obvious that could explain why ? Can someone please tell me why my cpup tanks?
12 Replies
Jimmacle
Jimmacle•2mo ago
use a profiler to measure what's taking a long time
whatsinaname
whatsinaname•2mo ago
What compute operation you're trying to run
todde15
todde15OP•2mo ago
thanks for the advice, how do I do that ? I'm trying to predict the next word based on the previous word
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
todde15
todde15OP•2mo ago
im a beginner, is there something wrong with that line?
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
todde15
todde15OP•2mo ago
i tried to fix the cpu problem with that line
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
todde15
todde15OP•2mo ago
with cpu problem I mean that when I run the script the task manager shows my cpu at 100% and the programme freezes and then crashes. I think I tried to multithread it to evenly distribute the work across the cpu? ddoes that make sense?
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
todde15
todde15OP•2mo ago
okay but I finally figured out another way to predict next words🤷‍
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server