Function trx::detect_positions_scalar_type

Function Documentation

TrxScalarType trx::detect_positions_scalar_type(const std::string &path, TrxScalarType fallback = TrxScalarType::Float32)

Detect the positions scalar type for a TRX path.

Parameters:
  • path – Path to a TRX zip archive or directory.

  • fallback – Fallback type when dtype is unknown.

Returns:

TrxScalarType