Bamdev Mishra

Applied Machine Learning Researcher

McTorch

McTorch, a manifold optimization library for deep learning

McTorch is a Python library that adds manifold optimization functionality to PyTorch.

McTorch:
– Leverages tensor computation and GPU acceleration from PyTorch.
– Enables optimization on manifold constrained tensors to address nonlinear optimization problems.
– Facilitates constrained weight tensors in deep learning layers.

McTorch builds on top of PyTorch and supports all PyTorch functions in addition to Manifold optimization. This is done to ensure researchers and developers using PyTorch can easily experiment with McTorch functions. McTorch’s manifold implementations and optimization methods are derived from the Matlab toolbox Manopt and the Python toolbox Pymanopt.

Functionality Supported

This would be an ever increasing list of features. McTorch currently supports:

Manifolds

– Stiefel
– Positive Definite

All manifolds support k multiplier as well.

Optimizers

– SGD
– Adagrad
– Conjugate Gradient

Layers

– Linear
– Conv1d, Conv2d, Conv3d
– Conv1d\_transpose, Conv2d\_transpose, Conv3d\_transpose