Class: Xberg::SparseEmbeddingConfig
- Inherits:
-
Object
- Object
- Xberg::SparseEmbeddingConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
readonly
Returns the value of attribute acceleration.
-
#batch_size ⇒ Integer
readonly
Returns the value of attribute batch_size.
-
#cache_dir ⇒ String?
readonly
Returns the value of attribute cache_dir.
-
#max_embed_duration_secs ⇒ Integer?
readonly
Returns the value of attribute max_embed_duration_secs.
-
#max_length ⇒ Integer
readonly
Returns the value of attribute max_length.
-
#model ⇒ SparseEmbeddingModelType
readonly
Returns the value of attribute model.
-
#show_download_progress ⇒ Boolean
readonly
Returns the value of attribute show_download_progress.
Instance Method Summary collapse
-
#initialize ⇒ SparseEmbeddingConfig
constructor
A new instance of SparseEmbeddingConfig.
Constructor Details
#initialize ⇒ SparseEmbeddingConfig
Returns a new instance of SparseEmbeddingConfig.
2395 |
# File 'sig/types.rbs', line 2395
def initialize: (?model: SparseEmbeddingModelType, ?batch_size: Integer, ?max_length: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer) -> void
|
Instance Attribute Details
#acceleration ⇒ AccelerationConfig? (readonly)
Returns the value of attribute acceleration.
2392 2393 2394 |
# File 'sig/types.rbs', line 2392 def acceleration @acceleration end |
#batch_size ⇒ Integer (readonly)
Returns the value of attribute batch_size.
2388 2389 2390 |
# File 'sig/types.rbs', line 2388 def batch_size @batch_size end |
#cache_dir ⇒ String? (readonly)
Returns the value of attribute cache_dir.
2391 2392 2393 |
# File 'sig/types.rbs', line 2391 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer? (readonly)
Returns the value of attribute max_embed_duration_secs.
2393 2394 2395 |
# File 'sig/types.rbs', line 2393 def @max_embed_duration_secs end |
#max_length ⇒ Integer (readonly)
Returns the value of attribute max_length.
2389 2390 2391 |
# File 'sig/types.rbs', line 2389 def max_length @max_length end |
#model ⇒ SparseEmbeddingModelType (readonly)
Returns the value of attribute model.
2387 2388 2389 |
# File 'sig/types.rbs', line 2387 def model @model end |
#show_download_progress ⇒ Boolean (readonly)
Returns the value of attribute show_download_progress.
2390 2391 2392 |
# File 'sig/types.rbs', line 2390 def show_download_progress @show_download_progress end |