def test_dense_deeper():
    graph = get_conv_dense_model()
    model = graph.produce_model()
    graph = deepcopy(graph)
    graph.to_dense_deeper_model(10)
    new_model = graph.produce_model()
    input_data = torch.Tensor(get_conv_data())
    model.eval()
    new_model.eval()
    output1 = model(input_data)
    output2 = new_model(input_data)
    assert ((output1 - output2).abs().sum() < 0.0001)
def test_dense_deeper():
    graph = get_conv_dense_model()
    model = graph.produce_model()
    graph = deepcopy(graph)
    graph.to_dense_deeper_model(10)
    new_model = graph.produce_model()
    input_data = torch.Tensor(get_conv_data())
    model.eval()
    new_model.eval()
    output1 = model(input_data)
    output2 = new_model(input_data)
    assert ((output1 - output2).abs().sum() < 0.0001)