Ejemplo n.º 1
0
def weights_and_gradient(request):
    shapes = list(pairwise(request.param))
    weights = random_matrices(shapes)
    gradient = random_matrices(shapes)
    return weights, gradient
Ejemplo n.º 2
0
def weights(request):
    shapes = list(pairwise(request.param))
    weights = random_matrices(shapes)
    return weights