活性化(Activation)¶
models モジュールの 活性化層(Activation層()を作るためのモデルです。
Binarize クラス¶
- class binarybrain.models.Binarize(*, input_shape=None, binary_th=0.0, binary_low=-1.0, binary_high=1.0, hardtanh_min=-1.0, hardtanh_max=1.0, name=None, bin_dtype=DType.FP32, real_dtype=DType.FP32, core_model=None)¶
ベースクラス:
Model
Binarize class
2値化(活性化層) backward は hard-tanh となる
- パラメータ
bin_dtype (DType)) -- バイナリ型を bb.DType.FP32 と bb.DType.BIT から指定