If I purchased gpus for crypto mining and I wanted to sell them at a loss. Is there a way I can write off the loss?

This was not tied to a business