pytorch/caffe2/python/helpers/algebra.py
Yiming Wu 8de1ce57d2 Add Algebra and train helpers and proxy them to CNNMH
Summary: Add Algebra and train helpers and proxy them to CNNMH

Reviewed By: salexspb

Differential Revision: D4855040

fbshipit-source-id: d948ea913f674a6e47c4b72629a2d33253cb3130
2017-04-11 23:03:00 -07:00

22 lines
500 B
Python

## @package algebra
# Module caffe2.python.helpers.algebra
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
__all__ = [
'Transpose',
'Sum',
]
def Transpose(model, blob_in, blob_out, **kwargs):
"""Transpose."""
return model.net.Transpose(blob_in, blob_out, **kwargs)
def Sum(model, blob_in, blob_out, **kwargs):
"""Sum"""
return model.net.Sum(blob_in, blob_out, **kwargs)