Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
GraphBuilder#removeVertex(name, true) fails for new GraphBuilder #6565
The following testscase fails on 1.0.0-beta2:
Reason is that Arrays.asList(vertexInputs) or (Collections.singletonList in case a merge vertex is created) is used to create the list of vertex inputs and those lists are immutable. Remove vertex with removeConnections will remove the given vertex name from all vertexes which has it as input.
The reason why this works from e.g. TransferLearning API is that a new ArrayList is used to copy the list of inputs in ComputationGraphConfiguration#clone