LCOV - code coverage report
Current view: top level - src - torch_c_api.cpp (source / functions) Coverage Total Hit
Test: CP2K Regtests (git:06f838d) Lines: 89.7 % 223 200
Test Date: 2026-06-05 07:04:50 Functions: 93.5 % 46 43

Function Name Sort by function name Hit count Sort by function hit count
torch_c_tensor_data_ptr_int32 0
torch_c_tensor_data_ptr_int64 0
torch_c_tensor_from_array_int32 0
torch_c_cuda_is_available 2
torch_c_allow_tf32 4
torch_c_model_freeze 4
torch_c_tensor_backward 6
torch_c_model_get_attr_double 8
torch_c_model_get_attr_list_size 8
torch_c_model_release 14
torch_c_model_get_attr_string 16
torch_c_model_get_attr_strlist 16
torch_c_model_get_attr_int64 40
_ZL22load_module_for_devicePKcRKN3c106DeviceE 44
_ZL23set_jit_fusion_strategyv 44
_ZL27can_load_directly_to_deviceRKN3c106DeviceE 44
torch_c_model_load 44
torch_c_model_forward 60
torch_c_tensor_data_ptr_float 66
torch_c_tensor_from_array_float 66
torch_c_dict_get 72
_ZL23copy_string_to_c_bufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPcPi 88
torch_c_free_string 88
torch_c_model_read_metadata 88
torch_c_dict_clone 120
torch_c_model_forward_mol_tensor 120
torch_c_tensor_backward_scalar 120
torch_c_tensor_item_double 120
torch_c_tensor_weighted_sum 120
torch_c_dict_create 196
torch_c_use_cuda 240
torch_c_dict_release 256
torch_c_tensor_from_array_double 322
_ZL14tensor_matchesPKN2at6TensorEN3c1010ScalarTypeERKNS3_6DeviceEiPKl 360
_ZL30reset_tensor_from_array_doublePPN2at6TensorEbiPKlPd 360
torch_c_tensor_reset_from_array_double 360
torch_c_tensor_grad 372
torch_c_tensor_data_ptr_double 375
torch_c_tensor_from_array_int64 402
_ZL12get_data_ptrPKN2at6TensorEN3c1010ScalarTypeEiPl 441
torch_c_tensor_to_device_leaf 538
_ZL17tensor_from_arrayN3c1010ScalarTypeEbiPKlPv 790
torch_c_tensor_release 1078
torch_c_dict_insert 1106
_ZL10get_devicev 2966
_ZL21get_device_with_guardRN3c1019OptionalDeviceGuardE 2966

Generated by: LCOV version 2.0-1