/// <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, padding_top, padding_bottom, padding_front, padding_back)</param> /// <param name="value"></param> /// <returns></returns> static public TorchTensor ConstantPad3d(TorchTensor x, long padding, double value) { using (var d = Modules.ConstantPad3d(padding, value)) { return(d.forward(x)); } }