Class: Xberg::PaddleOcrVlBackendOptions

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePaddleOcrVlBackendOptions

Returns a new instance of PaddleOcrVlBackendOptions.

Parameters:

  • task: (enum_PaddleOcrVlTaskKind)
  • model_path: (String)
  • model_id: (String)
  • hf_revision: (String)
  • cache_dir: (String)
  • device: (enum_CandleDevicePreference)


1866
# File 'sig/types.rbs', line 1866

def initialize: (?task: enum_PaddleOcrVlTaskKind, ?model_path: String, ?model_id: String, ?hf_revision: String, ?cache_dir: String, ?device: enum_CandleDevicePreference) -> void

Instance Attribute Details

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


1863
1864
1865
# File 'sig/types.rbs', line 1863

def cache_dir
  @cache_dir
end

#deviceenum_CandleDevicePreference? (readonly)

Returns the value of attribute device.

Returns:

  • (enum_CandleDevicePreference, nil)


1864
1865
1866
# File 'sig/types.rbs', line 1864

def device
  @device
end

#hf_revisionString? (readonly)

Returns the value of attribute hf_revision.

Returns:

  • (String, nil)


1862
1863
1864
# File 'sig/types.rbs', line 1862

def hf_revision
  @hf_revision
end

#model_idString? (readonly)

Returns the value of attribute model_id.

Returns:

  • (String, nil)


1861
1862
1863
# File 'sig/types.rbs', line 1861

def model_id
  @model_id
end

#model_pathString? (readonly)

Returns the value of attribute model_path.

Returns:

  • (String, nil)


1860
1861
1862
# File 'sig/types.rbs', line 1860

def model_path
  @model_path
end

#taskenum_PaddleOcrVlTaskKind? (readonly)

Returns the value of attribute task.

Returns:

  • (enum_PaddleOcrVlTaskKind, nil)


1859
1860
1861
# File 'sig/types.rbs', line 1859

def task
  @task
end