semvec/pypi-packages huggingface dataset:
stochdepth 0.5.0
A simple hook based implementation of "Deep Networks with Stochastic Depth" for torchvision resnets.
License: MIT

# Stochastic Depth with PyTorch Hooks ![Travis CI build status](https://travis-ci.com/tasptz/pytorch-stochastic-depth.svg?branch=master) [![PyPI version](https://badge.fury.io/py/stochdepth.svg)](https://badge.fury.io/py/stochdepth)
A simple [hook](https://pytorch.org/docs/stable/generated/torch.nn.Modules.module.register_module_forward_hook.html) based implementation of [Deep Networks with Stochastic Depth](https://arxiv.org/abs/1603.09382) for [torchvision resnets](https://pytorch.org/vision/stable/_modules/torchvision/models/resnet.html).
# Example
```python
import torch
import torchvision.models as models
resnet = models.resnet152(pretrained=False)
resnet.train()

from stochdepth import uniform
hooks = uniform(resnet, p=0.2)

x = torch.zeros((8, 3, 224, 224), dtype=torch.float32)
y = resnet(x)

# remove hooks
for h in hooks:
    h.remove()

from stochdepth import resnet_linear
hooks = resnet_linear(resnet)

y = resnet(x)
# remove hooks
for h in hooks:
    h.remove()
```
AliasToFunc 0.0.6
Python package to create alias to function
License: MIT

[![CodeFactor](https://www.codefactor.io/repository/github/hexagoncore/AliasToFunc/badge)](#/)
[<img src="https://img.shields.io/github/license/HexagonCore/AliasToFunc">](#/)
[<img src="https://img.shields.io/github/stars/HexagonCore/AliasToFunc">](#/)
[<img src="https://img.shields.io/github/forks/HexagonCore/AliasToFunc">](#/)
[<img src="https://img.shields.io/github/issues/HexagonCore/AliasToFunc">](#/)


# AliasToFunc
Python package to create **alias to function**
___
### ‎

## Instalation
* ### Windows / macOS
	Run `python3 -m pip install AliasToFunc`
	
* ### Linux
	Run `python3 -m pip install AliasToFunc`
### ‎

## Usage
* ### Windows / macOS / Linux
	Add this to your script: `import AliasToFunc`<br/> ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎`AliasToFunc("YourFunction", "YourNewAliasToFunction")`

	

### ‎

## Uninstallation
* ### Windows / macOS
	Run `python3 -m pip uninstall AliasToFunc`
	
* ### Linux
	Run `python3 -m pip uninstall AliasToFunc`

### ‎
## FAQ
* ### Question
	Answer
### ‎


Do you like this? Hit that ⭐!                                
Use the star button as way to show us, that it works              
Forks and pull requests are welcome of course