Пример #1
0
def test_fast__PatternComputer_dummy_sequential():
    def method(model):
        return PatternComputer(model,
                               pattern_type="dummy",
                               compute_layers_in_parallel=False)

    dryrun.test_pattern_computer(method, "mnist.log_reg")
Пример #2
0
def test_precommit__PatternComputer_relunegative():
    def method(model):
        return PatternComputer(model, pattern_type="relu.negative")

    dryrun.test_pattern_computer(method, "mnist.*")
Пример #3
0
def test_fast__PatternComputer_relupositive():
    def method(model):
        return PatternComputer(model, pattern_type="relu.positive")

    dryrun.test_pattern_computer(method, "mnist.log_reg")
Пример #4
0
def test_precommit__PatternComputer_linear():
    def method(model):
        return PatternComputer(model, pattern_type="linear")

    dryrun.test_pattern_computer(method, "mnist.*")
Пример #5
0
def test_fast__PatternComputer_linear():
    def method(model):
        return PatternComputer(model, pattern_type="linear")

    dryrun.test_pattern_computer(method, "mnist.log_reg")