Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.0 instead.
Reason given by maintainers: !!! may lead to bugs

torchei_logo

TorchEI⚡

IntroUsageDocCiteContributionLicense

Introduction

👋TorchEI, pronounced*/ˈtôrCHər/*, short for Pytorch Error Injection, is a high-speed toolbox around DNN Reliability's Research and Development. TorchEI enables you quickly and simply inject errors into DNN, collects information you needed, and harden your DNN.

TorchEI implemented incredible parallel evaluation system which could allow you adequately utilize device computing performance with tolerance to non-catastrophic faults.

Features

  • Full typing system supported
  • Contains methods from papers in DNN Reliability
  • High-efficiency, fault-tolerant parallel system

Quick Example

Here we gonna show you a quick example, or you can try interactive demo and online editor.

Installing

Install public distribution using pip3 install torchei or download it.

Example

Init fault model

import torch
from torchvision import models
import torchei
model = models.resnet18(pretrained=True)
data = torch.load('./datasets/ilsvrc_valid8.pt')
fault_model = torchei.fault_model(model,data)

Calc reliability using emat method

fault_model.emat_attack(10,1e-3)

Calc reliability using Parallel Mechanism (under developing)


Calc reliability using SERN

fault_model.sern_calc(output_class=1000)

Harden DNN by ODR

fault_model.outlierDR_protection()
fault_model.emat_attack(10,1e-3)

Contributioncontributors

If you found🧐 any bugs or have🖐️ any suggestions, please tell us.

This repo is open to everyone wants to maintain together.

You can helps us with follow things:

  • PR your implemented methods in your or others' papers
  • Complete our project
  • Translate our docs to your language
  • Other

We want to build TorchEI to best toolbox in DNN Reliability around bit flip, adversarial attack, and others. :e-mail: forcessless@foxmail.com

Citation

Our paper is under reviewing.

License

MIT License. Copyright:copyright:2022/5/23-present, Hao Zheng.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchei-0.0.8.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchei-0.0.8-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file torchei-0.0.8.tar.gz.

File metadata

  • Download URL: torchei-0.0.8.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for torchei-0.0.8.tar.gz
Algorithm Hash digest
SHA256 000bfaae09462788c02c8229d13a1f4f3493e17bcc20d2fe275d5fee9ad3b0ce
MD5 0502dbcfb6f42066927f0aceed7c5aa5
BLAKE2b-256 4a49f4099f978edf9de5c2fc9da0447caabd2e0b6b804b1391b99be586a0952c

See more details on using hashes here.

File details

Details for the file torchei-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: torchei-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for torchei-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 345e7760ecb1b947b3039271f043c18bc19d2e9104e6cb993392006fa9183562
MD5 48069688d9983148cd7ef8a1f86385ee
BLAKE2b-256 91b147ea0eb9f43120e7003d7e5d6a5942bfd231351e644315ee632fa4161f60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page