Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
num
v1.1.1
Array
ARROW
CPU
Num
ArrayFlags
Einsum
Exceptions
AxisError
IndexError
LinAlgError
ValueError
Grad
Context
Variable
NN
AdamOptimizer
ConvolutionalLayer
Distribution
DropoutLayer
EluLayer
FanMode
FlattenLayer
InputLayer
Layer
LeakyReluLayer
LinearLayer
Loss
MaxPoolLayer
MSELoss
Network
NetworkInfo
Optimizer
ReluLayer
SGDMomentumOptimizer
SGDOptimizer
SigmoidCrossEntropyLoss
SigmoidLayer
SoftmaxCrossEntropyLoss
OrderType
Rand
Number
OCL
Tensor
Built with Crystal 1.9.2
2023-10-08 08:17:24 UTC
class
Num::NN::SigmoidLayer(T)
Num::NN::SigmoidLayer(T)
Num::NN::Layer(T)
Reference
Object
Defined in:
nn/layers/sigmoid.cr
Constructors
.new
(context : Num::Grad::Context(T), output_shape : Array(Int32))
Instance Method Summary
#forward
(input : Num::Grad::Variable(T)) : Num::Grad::Variable(T)
#output_shape
: Array(Int32)
Instance methods inherited from class
Num::NN::Layer(T)
forward(input : Num::Grad::Variable(T))
forward
,
output_shape : Array(Int32)
output_shape
,
variables : Array(Num::Grad::Variable(T))
variables
Constructor Detail
def self.
new
(context :
Num::Grad::Context
(T), output_shape :
Array
(Int32))
#
[
View source
]
Instance Method Detail
def
forward
(input :
Num::Grad::Variable
(T)) :
Num::Grad::Variable
(T)
#
[
View source
]
def
output_shape
:
Array
(Int32)
#
[
View source
]