|
Java example source code file (TestGraphVertex.java)
The TestGraphVertex.java Java example source codepackage org.deeplearning4j.nn.conf.misc; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.deeplearning4j.nn.conf.graph.GraphVertex; import org.deeplearning4j.nn.conf.inputs.InputType; import org.deeplearning4j.nn.conf.inputs.InvalidInputTypeException; import org.deeplearning4j.nn.graph.ComputationGraph; import org.nd4j.linalg.api.ndarray.INDArray; @AllArgsConstructor @Data @NoArgsConstructor public class TestGraphVertex extends GraphVertex { private int firstVal; private int secondVal; @Override public GraphVertex clone() { return new TestGraphVertex(firstVal,secondVal); } @Override public int numParams(boolean backprop) { return 0; } @Override public org.deeplearning4j.nn.graph.vertex.GraphVertex instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams) { throw new UnsupportedOperationException("Not supported"); } @Override public InputType getOutputType(InputType... vertexInputs) throws InvalidInputTypeException { throw new UnsupportedOperationException(); } } Other Java examples (source code examples)Here is a short list of links related to this Java TestGraphVertex.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.