All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.tensorflow.GuaranteeConst 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.*;


/** Gives a guarantee to the TF runtime that the input tensor is a constant.
 * 
 *  The runtime is then free to make optimizations based on this.
 * 
 *  Only accepts value typed tensors as inputs and rejects resource variable handles
 *  as input.
 * 
 *  Returns the input tensor without modification.
 * 
 *  Arguments:
 *  * scope: A Scope object
 * 
 *  Returns:
 *  * {@code Output}: The output tensor. */
@Namespace("tensorflow::ops") @NoOffset @Properties(inherit = org.bytedeco.tensorflow.presets.tensorflow.class)
public class GuaranteeConst extends Pointer {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public GuaranteeConst(Pointer p) { super(p); }

  public GuaranteeConst(@Const @ByRef Scope scope, @ByVal Input input) { super((Pointer)null); allocate(scope, input); }
  private native void allocate(@Const @ByRef Scope scope, @ByVal Input input);
  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 GuaranteeConst operation(Operation setter);
  public native @ByRef Output output(); public native GuaranteeConst output(Output setter);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy