All Projects → nearai → Torchfold

nearai / Torchfold

Licence: apache-2.0
Tools for PyTorch

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Torchfold

Artnet
Appearance-and-Relation Networks
Stars: ✭ 201 (-8.64%)
Mutual labels:  deep-neural-networks
Onednn
oneAPI Deep Neural Network Library (oneDNN)
Stars: ✭ 2,600 (+1081.82%)
Mutual labels:  deep-neural-networks
Pytorch Lapsrn
Pytorch implementation for LapSRN (CVPR2017)
Stars: ✭ 215 (-2.27%)
Mutual labels:  deep-neural-networks
Tensorflow Deep Learning
All course materials for the Zero to Mastery Deep Learning with TensorFlow course.
Stars: ✭ 170 (-22.73%)
Mutual labels:  deep-neural-networks
Deep Mri Reconstruction
Deep Cascade of Convolutional Neural Networks for MR Image Reconstruction: Implementation & Demo
Stars: ✭ 204 (-7.27%)
Mutual labels:  deep-neural-networks
Chanlun
文件 笔和线段的一种划分.py,只需要把k线high,low数据输入,就能自动实现笔,线段,中枢,买卖点,走势类型的划分了。可以把sh.csv 作为输入文件。个人简历见.pdf。时间的力量。有人说择时很困难,有人说选股很容易,有人说统计套利需要的IT配套设施很重要。还有人说系统有不可测原理。众说纷纭。分布式的系统,当你的影响可以被忽略,你才能实现,Jiang主席所谓之,闷声发大财。
Stars: ✭ 206 (-6.36%)
Mutual labels:  deep-neural-networks
Traffic Sign Detection
Traffic Sign Detection. Code for the paper entitled "Evaluation of deep neural networks for traffic sign detection systems".
Stars: ✭ 200 (-9.09%)
Mutual labels:  deep-neural-networks
Cardio
CardIO is a library for data science research of heart signals
Stars: ✭ 218 (-0.91%)
Mutual labels:  deep-neural-networks
Oneflow
OneFlow is a performance-centered and open-source deep learning framework.
Stars: ✭ 2,868 (+1203.64%)
Mutual labels:  deep-neural-networks
Generative inpainting
DeepFill v1/v2 with Contextual Attention and Gated Convolution, CVPR 2018, and ICCV 2019 Oral
Stars: ✭ 2,659 (+1108.64%)
Mutual labels:  deep-neural-networks
Chameleon recsys
Source code of CHAMELEON - A Deep Learning Meta-Architecture for News Recommender Systems
Stars: ✭ 202 (-8.18%)
Mutual labels:  deep-neural-networks
Character Based Cnn
Implementation of character based convolutional neural network
Stars: ✭ 205 (-6.82%)
Mutual labels:  deep-neural-networks
Ml Examples
Arm Machine Learning tutorials and examples
Stars: ✭ 207 (-5.91%)
Mutual labels:  deep-neural-networks
Halite Ii
Season 2 of @twosigma's artificial intelligence programming challenge
Stars: ✭ 201 (-8.64%)
Mutual labels:  deep-neural-networks
3dmmasstn
MatConvNet implementation for incorporating a 3D Morphable Model (3DMM) into a Spatial Transformer Network (STN)
Stars: ✭ 218 (-0.91%)
Mutual labels:  deep-neural-networks
Neuralet
Neuralet is an open-source platform for edge deep learning models on edge TPU, Jetson Nano, and more.
Stars: ✭ 200 (-9.09%)
Mutual labels:  deep-neural-networks
Learnopencv
Learn OpenCV : C++ and Python Examples
Stars: ✭ 15,385 (+6893.18%)
Mutual labels:  deep-neural-networks
Video Classification Cnn And Lstm
To classify video into various classes using keras library with tensorflow as back-end.
Stars: ✭ 218 (-0.91%)
Mutual labels:  deep-neural-networks
50 Days Of Ml
A day to day plan for this challenge (50 Days of Machine Learning) . Covers both theoretical and practical aspects
Stars: ✭ 218 (-0.91%)
Mutual labels:  deep-neural-networks
Trixi
Manage your machine learning experiments with trixi - modular, reproducible, high fashion. An experiment infrastructure optimized for PyTorch, but flexible enough to work for your framework and your tastes.
Stars: ✭ 211 (-4.09%)
Mutual labels:  deep-neural-networks

PyPi version DOI

TorchFold

Blog post: http://near.ai/articles/2017-09-06-PyTorch-Dynamic-Batching/

Analogous to TensorFlow Fold, implements dynamic batching with super simple interface. Replace every direct call in your computation to nn module with f.add('function name', arguments). It will construct an optimized version of computation and on f.apply will dynamically batch and execute the computation on given nn module.

Installation

We recommend using pip package manager:

pip install torchfold

Example

    f = torchfold.Fold()
   
    def dfs(node):
        if is_leaf(node):
            return f.add('leaf', node)
        else:
            prev = f.add('init')
            for child in children(node):
                prev = f.add('child', prev, child)
            return prev

    class Model(nn.Module):
        def __init__(self, ...):
            ...

        def leaf(self, leaf):
            ...

        def child(self, prev, child):
            ...

    res = dfs(my_tree)
    model = Model(...)
    f.apply(model, [[res]])

To cite this repository in publications:

@misc{illia_polosukhin_2018_1299387,
  author       = {Illia Polosukhin and
                  Maksym Zavershynskyi},
  title        = {nearai/torchfold: v0.1.0},
  month        = jun,
  year         = 2018,
  doi          = {10.5281/zenodo.1299387},
  url          = {https://doi.org/10.5281/zenodo.1299387}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].