Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Wrappers for pytorch stuff I use on the daily. Basically a minimal 'pytorch lightning', I was just not aware it existed at the time of creation.
Install with pip install torchenhanced
.
Here we describe how to use at a basic level the different components included in torchenhanced
. There are many unrelated things it helps to do, so we dedicate a section to each.
torchenhanced
defines two new classes which are meant as stand-in for nn.Module
.
DevModule
Import with from torchenhanced import DevModule
.
DevModule
is short for 'DeviceModule'. It is a nn.Module
, but has an additional attribute device
, which helps keeps track of the current device it is on.
Use it just like nn.Module
, except it needs to be initialized with a device :
class MyModule(DevModule):
def __init__(hidden, device='cpu'):
super().__init__(device)
layer = nn.Linear(hidden,hidden,device=self.device)
Works just [STILL WIP]
FAQs
Wrappers for pytorch stuff I use on the daily
We found that torchenhanced demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.