Esempio n. 1
0
def mean(y, x, axis=DEFAULT, dtype=DEFAULT, keepdims=DEFAULT):
    n = tangent.astype(tangent.array_size(x, axis), x)
    d[x] = tangent.astype(
        tangent.unreduce(d[y], numpy.shape(x), axis, keepdims), x) / n
Esempio n. 2
0
def aastype(z, array, y):
    d[array] = tangent.astype(d[z], array)
Esempio n. 3
0
def sum(y, x, axis=DEFAULT, dtype=DEFAULT, keepdims=DEFAULT):
    d[x] = tangent.astype(
        tangent.unreduce(d[y], numpy.shape(x), axis, keepdims), x)
Esempio n. 4
0
def tastype(z, x, y):
    d[z] = tangent.astype(d[x], d[y])
Esempio n. 5
0
def aarray(ans, x):
    d[x] = tangent.astype(d[ans], x)
Esempio n. 6
0
def mean(y, x, axis=None, dtype=None, keepdims=False):
    n = tangent.astype(tangent.array_size(x, axis), x)
    d[x] = tangent.astype(
        tangent.unreduce(d[y], numpy.shape(x), axis, keepdims), x) / n
Esempio n. 7
0
def sum(y, x, axis=None, dtype=None, keepdims=False):
    d[x] = tangent.astype(
        tangent.unreduce(d[y], numpy.shape(x), axis, keepdims), x)