Class: Cohere::Transcribe::TranscriptionStatistics

Inherits:
Data
  • Object
show all
Defined in:
lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs

Overview

Stable high-level performance and resource statistics for one run.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elapsed_seconds:, successful_audio_seconds:, real_time_factor_x:, runtime_import_seconds:, serialization_wait_seconds:, input_validation_seconds:, decode_seconds:, vad_seconds:, asr_load_seconds:, asr_seconds:, aligner_load_seconds:, emissions_seconds:, viterbi_seconds:, peak_cuda_allocated_gib:, peak_cuda_reserved_gib:, asr_batches:, asr_processor_rows:, generated_tokens:, oom_retries:, truncation_retries:) ⇒ TranscriptionStatistics

Returns a new instance of TranscriptionStatistics.



407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
# File 'lib/cohere/transcribe/types.rb', line 407

def initialize(
  elapsed_seconds:,
  successful_audio_seconds:,
  real_time_factor_x:,
  runtime_import_seconds:,
  serialization_wait_seconds:,
  input_validation_seconds:,
  decode_seconds:,
  vad_seconds:,
  asr_load_seconds:,
  asr_seconds:,
  aligner_load_seconds:,
  emissions_seconds:,
  viterbi_seconds:,
  peak_cuda_allocated_gib:,
  peak_cuda_reserved_gib:,
  asr_batches:,
  asr_processor_rows:,
  generated_tokens:,
  oom_retries:,
  truncation_retries:
)
  super
end

Instance Attribute Details

#aligner_load_secondsObject (readonly)

Returns the value of attribute aligner_load_seconds

Returns:

  • (Object)

    the current value of aligner_load_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def aligner_load_seconds
  @aligner_load_seconds
end

#asr_batchesObject (readonly)

Returns the value of attribute asr_batches

Returns:

  • (Object)

    the current value of asr_batches



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def asr_batches
  @asr_batches
end

#asr_load_secondsObject (readonly)

Returns the value of attribute asr_load_seconds

Returns:

  • (Object)

    the current value of asr_load_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def asr_load_seconds
  @asr_load_seconds
end

#asr_processor_rowsObject (readonly)

Returns the value of attribute asr_processor_rows

Returns:

  • (Object)

    the current value of asr_processor_rows



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def asr_processor_rows
  @asr_processor_rows
end

#asr_secondsObject (readonly)

Returns the value of attribute asr_seconds

Returns:

  • (Object)

    the current value of asr_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def asr_seconds
  @asr_seconds
end

#decode_secondsObject (readonly)

Returns the value of attribute decode_seconds

Returns:

  • (Object)

    the current value of decode_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def decode_seconds
  @decode_seconds
end

#elapsed_secondsObject (readonly)

Returns the value of attribute elapsed_seconds

Returns:

  • (Object)

    the current value of elapsed_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def elapsed_seconds
  @elapsed_seconds
end

#emissions_secondsObject (readonly)

Returns the value of attribute emissions_seconds

Returns:

  • (Object)

    the current value of emissions_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def emissions_seconds
  @emissions_seconds
end

#generated_tokensObject (readonly)

Returns the value of attribute generated_tokens

Returns:

  • (Object)

    the current value of generated_tokens



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def generated_tokens
  @generated_tokens
end

#input_validation_secondsObject (readonly)

Returns the value of attribute input_validation_seconds

Returns:

  • (Object)

    the current value of input_validation_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def input_validation_seconds
  @input_validation_seconds
end

#oom_retriesObject (readonly)

Returns the value of attribute oom_retries

Returns:

  • (Object)

    the current value of oom_retries



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def oom_retries
  @oom_retries
end

#peak_cuda_allocated_gibObject (readonly)

Returns the value of attribute peak_cuda_allocated_gib

Returns:

  • (Object)

    the current value of peak_cuda_allocated_gib



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def peak_cuda_allocated_gib
  @peak_cuda_allocated_gib
end

#peak_cuda_reserved_gibObject (readonly)

Returns the value of attribute peak_cuda_reserved_gib

Returns:

  • (Object)

    the current value of peak_cuda_reserved_gib



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def peak_cuda_reserved_gib
  @peak_cuda_reserved_gib
end

#real_time_factor_xObject (readonly)

Returns the value of attribute real_time_factor_x

Returns:

  • (Object)

    the current value of real_time_factor_x



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def real_time_factor_x
  @real_time_factor_x
end

#runtime_import_secondsObject (readonly)

Returns the value of attribute runtime_import_seconds

Returns:

  • (Object)

    the current value of runtime_import_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def runtime_import_seconds
  @runtime_import_seconds
end

#serialization_wait_secondsObject (readonly)

Returns the value of attribute serialization_wait_seconds

Returns:

  • (Object)

    the current value of serialization_wait_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def serialization_wait_seconds
  @serialization_wait_seconds
end

#successful_audio_secondsObject (readonly)

Returns the value of attribute successful_audio_seconds

Returns:

  • (Object)

    the current value of successful_audio_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def successful_audio_seconds
  @successful_audio_seconds
end

#truncation_retriesObject (readonly)

Returns the value of attribute truncation_retries

Returns:

  • (Object)

    the current value of truncation_retries



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def truncation_retries
  @truncation_retries
end

#vad_secondsObject (readonly)

Returns the value of attribute vad_seconds

Returns:

  • (Object)

    the current value of vad_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def vad_seconds
  @vad_seconds
end

#viterbi_secondsObject (readonly)

Returns the value of attribute viterbi_seconds

Returns:

  • (Object)

    the current value of viterbi_seconds



385
386
387
# File 'lib/cohere/transcribe/types.rb', line 385

def viterbi_seconds
  @viterbi_seconds
end

Class Method Details

.newTranscriptionStatistics

Parameters:

  • (Object)

Returns:



179
# File 'sig/cohere/transcribe.rbs', line 179

def self.new: (**untyped) -> TranscriptionStatistics