org.bytedeco.pytorch.ConstantPad1dImpl 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.*;
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConstantPad1d ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/** Applies ConstantPad over a 1-D input.
* See https://pytorch.org/docs/master/nn.html#torch.nn.ConstantPad1d to learn
* about the exact behavior of this module.
*
* See the documentation for {@code torch::nn::ConstantPad1dOptions} class to learn
* what constructor arguments are supported for this module.
*
* Example:
* {@code
* ConstantPad1d model(ConstantPad1dOptions({3, 1}, 3.5));
* } */
@Namespace("torch::nn") @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class ConstantPad1dImpl extends ConstantPad1dImplBase {
static { Loader.load(); }
public ConstantPad1dImpl(@ByVal @Cast("torch::ExpandingArray<1*2>*") LongPointer padding, double value) { super((Pointer)null); allocate(padding, value); }
@NoDeallocator private native void allocate(@ByVal @Cast("torch::ExpandingArray<1*2>*") LongPointer padding, double value);
public ConstantPad1dImpl(@Const @ByRef ConstantPad1dOptions options_) { super((Pointer)null); allocate(options_); }
@NoDeallocator private native void allocate(@Const @ByRef ConstantPad1dOptions options_);
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConstantPad1dImpl(Pointer p) { super(p); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy