/// <summary> /// Pads the input tensor using replication of the input boundary. /// </summary> /// <param name="x">Input tensor</param> /// <param name="padding">The size of the padding: (padding_left , padding_right)</param> /// <param name="value"></param> /// <returns></returns> static public TorchTensor ConstantPad1d(TorchTensor x, long padding, double value) { using (var d = Modules.ConstantPad1d(padding, value)) { return(d.forward(x)); } }