field_array.py 167 Bytes
Newer Older
1
2
3
# -*- coding: utf-8 -*-


theos's avatar
theos committed
4
from base_field_type import FieldType
5
6


theos's avatar
theos committed
7
class FieldArray(FieldType):
8
9
    def dot_contraction(self, x, axes):
        return x.sum(axis=axes)