org.bytedeco.tensorflow.Add Maven / Gradle / Ivy
The newest version!
// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE
package org.bytedeco.tensorflow;
import org.bytedeco.tensorflow.Allocator;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.tensorflow.global.tensorflow.*;
/** Returns x + y element-wise.
*
* *NOTE*: {@code Add} supports broadcasting. {@code AddN} does not. More about broadcasting
* [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
*
* Arguments:
* * scope: A Scope object
*
* Returns:
* * {@code Output}: The z tensor. */
@Namespace("tensorflow::ops") @NoOffset @Properties(inherit = org.bytedeco.tensorflow.presets.tensorflow.class)
public class Add extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Add(Pointer p) { super(p); }
public Add(@Const @ByRef Scope scope, @ByVal Input x,
@ByVal Input y) { super((Pointer)null); allocate(scope, x, y); }
private native void allocate(@Const @ByRef Scope scope, @ByVal Input x,
@ByVal Input y);
public native @ByVal @Name("operator tensorflow::Output") Output asOutput();
public native @ByVal @Name("operator tensorflow::Input") Input asInput();
public native Node node();
public native @ByRef Operation operation(); public native Add operation(Operation setter);
public native @ByRef Output z(); public native Add z(Output setter);
}