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

org.bytedeco.pytorch.ConstExpr Maven / Gradle / Ivy

// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE

package org.bytedeco.pytorch;

import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;

import static org.bytedeco.pytorch.global.torch.*;


@Name("torch::jit::Const") @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class ConstExpr extends Expr {
    static { Loader.load(); }

  public ConstExpr(@Cast("const torch::jit::TreeRef*") @ByRef Pointer tree) { super((Pointer)null); allocate(tree); }
  private native void allocate(@Cast("const torch::jit::TreeRef*") @ByRef Pointer tree);
  public native @Cast("bool") boolean isFloatingPoint();
  public native @Cast("bool") boolean isIntegral();
  public native @Cast("bool") boolean isComplex();
  public native @Cast("int64_t") long asIntegral();
  public native double asFloatingPoint();
  public native @StdString BytePointer text();
  public static native @ByVal ConstExpr create(@Const @ByRef SourceRange range, @StdString BytePointer value);
  public static native @ByVal ConstExpr create(@Const @ByRef SourceRange range, @StdString String value);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy