home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (TestGraphVertex.java)

This example Java source code file (TestGraphVertex.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

allargsconstructor, data, graphvertex, indarray, inputtype, invalidinputtypeexception, noargsconstructor, not, override, string, testgraphvertex, unsupportedoperationexception

The TestGraphVertex.java Java example source code

package 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;

    public GraphVertex clone() {
        return new TestGraphVertex(firstVal,secondVal);

    public int numParams(boolean backprop) {
        return 0;

    public org.deeplearning4j.nn.graph.vertex.GraphVertex instantiate(ComputationGraph graph, String name, int idx,
                                                                      INDArray paramsView, boolean initializeParams) {
        throw new UnsupportedOperationException("Not supported");

    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:

my book on functional programming


new blog posts


Copyright 1998-2019 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.