Class: Transformers::DebertaV2::DropoutContext

Inherits:
Object
  • Object
show all
Defined in:
lib/transformers/models/deberta_v2/modeling_deberta_v2.rb

Instance Method Summary collapse

Constructor Details

#initializeDropoutContext

Returns a new instance of DropoutContext.



57
58
59
60
61
62
# File 'lib/transformers/models/deberta_v2/modeling_deberta_v2.rb', line 57

def initialize
  @dropout = 0
  @mask = nil
  @scale = 1
  @reuse_mask = true
end