Build a PyTorch-compatible optimizer implementing the StoSignSGD algorithm to prove its stability on non-smooth activation functions. This would provide a vital alternative to standard SignSGD for low-precision training environments.