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

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

// Targeted by JavaCPP version 1.5.9: 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::nn::detail::_DropoutNd") @NoOffset @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class Dropout2dImplBase extends Dropout2dImplCloneable {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public Dropout2dImplBase(Pointer p) { super(p); }

  public Dropout2dImplBase(double p) { super((Pointer)null); allocate(p); }
  @NoDeallocator private native void allocate(double p);

  public Dropout2dImplBase(@Const @ByRef(nullValue = "torch::nn::DropoutOptions{}") DropoutOptions options_) { super((Pointer)null); allocate(options_); }
  @NoDeallocator private native void allocate(@Const @ByRef(nullValue = "torch::nn::DropoutOptions{}") DropoutOptions options_);
  public Dropout2dImplBase() { super((Pointer)null); allocate(); }
  @NoDeallocator private native void allocate();

  public native void reset();

  /** The options with which this {@code Module} was constructed. */
  public native @ByRef DropoutOptions options(); public native Dropout2dImplBase options(DropoutOptions setter);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy