org.bytedeco.pytorch.AdaptiveAvgPool1dImplBase Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.5.8: 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.*;
// ============================================================================
/** Base class for all (dimension-specialized) adaptive avgpool modules. */
@Name("torch::nn::AdaptiveAvgPoolImpl<1,torch::ExpandingArray<1>,torch::nn::AdaptiveAvgPool1dImpl>") @NoOffset @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class AdaptiveAvgPool1dImplBase extends AdaptiveAvgPool1dImplCloneable {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public AdaptiveAvgPool1dImplBase(Pointer p) { super(p); }
public AdaptiveAvgPool1dImplBase(@ByVal @Cast("torch::ExpandingArray<1>*") LongPointer output_size) { super((Pointer)null); allocate(output_size); }
private native void allocate(@ByVal @Cast("torch::ExpandingArray<1>*") LongPointer output_size);
public AdaptiveAvgPool1dImplBase(
@Const @ByRef AdaptiveAvgPool1dOptions options_) { super((Pointer)null); allocate(options_); }
private native void allocate(
@Const @ByRef AdaptiveAvgPool1dOptions options_);
public native void reset();
/** Pretty prints the {@code AdaptiveAvgPool{1,2,3}d} module into the given {@code stream}. */
public native void pretty_print(@Cast("std::ostream*") @ByRef Pointer stream);
/** The options with which this {@code Module} was constructed. */
public native @ByRef AdaptiveAvgPool1dOptions options(); public native AdaptiveAvgPool1dImplBase options(AdaptiveAvgPool1dOptions setter);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy