def weights_and_gradient(request): shapes = list(pairwise(request.param)) weights = random_matrices(shapes) gradient = random_matrices(shapes) return weights, gradient
def weights(request): shapes = list(pairwise(request.param)) weights = random_matrices(shapes) return weights