program(1.0) [buildInfo = dict, tensor>({{"coremlc-component-MIL", "3500.14.1"}, {"coremlc-version", "3500.32.1"}, {"coremltools-component-torch", "2.8.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0b1"}})] { func main(tensor audio) { tensor sincnet_wav_norm1d_bias = const()[name = tensor("sincnet_wav_norm1d_bias"), val = tensor([0x1.73505ep-5])]; tensor sincnet_wav_norm1d_weight = const()[name = tensor("sincnet_wav_norm1d_weight"), val = tensor([0x1.43f862p-7])]; tensor sincnet_norm1d_0_bias = const()[name = tensor("sincnet_norm1d_0_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(64)))]; tensor sincnet_norm1d_0_weight = const()[name = tensor("sincnet_norm1d_0_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(448)))]; tensor sincnet_conv1d_1_bias = const()[name = tensor("sincnet_conv1d_1_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(832)))]; tensor sincnet_conv1d_1_weight = const()[name = tensor("sincnet_conv1d_1_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1152)))]; tensor sincnet_norm1d_1_bias = const()[name = tensor("sincnet_norm1d_1_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(97216)))]; tensor sincnet_norm1d_1_weight = const()[name = tensor("sincnet_norm1d_1_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(97536)))]; tensor sincnet_conv1d_2_bias = const()[name = tensor("sincnet_conv1d_2_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(97856)))]; tensor sincnet_conv1d_2_weight = const()[name = tensor("sincnet_conv1d_2_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(98176)))]; tensor sincnet_norm1d_2_bias = const()[name = tensor("sincnet_norm1d_2_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(170240)))]; tensor sincnet_norm1d_2_weight = const()[name = tensor("sincnet_norm1d_2_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(170560)))]; tensor linear_0_bias = const()[name = tensor("linear_0_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(170880)))]; tensor linear_0_weight = const()[name = tensor("linear_0_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(171456)))]; tensor linear_1_bias = const()[name = tensor("linear_1_bias"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(302592)))]; tensor linear_1_weight = const()[name = tensor("linear_1_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(303168)))]; tensor classifier_bias = const()[name = tensor("classifier_bias"), val = tensor([-0x1.00e888p+0, 0x1.67cb52p-2, 0x1.3d87fp-1, 0x1.c8aa8p-2, -0x1.445f5ep-2, -0x1.591274p-1, -0x1.8fb70ep-2])]; tensor classifier_weight = const()[name = tensor("classifier_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(368768)))]; tensor var_9 = const()[name = tensor("op_9"), val = tensor(0x1.47ae14p-7)]; tensor var_24 = const()[name = tensor("op_24"), val = tensor(0x1.4f8b58p-17)]; tensor waveform = instance_norm(beta = sincnet_wav_norm1d_bias, epsilon = var_24, gamma = sincnet_wav_norm1d_weight, x = audio)[name = tensor("waveform")]; tensor filters = const()[name = tensor("filters"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(372416)))]; tensor outputs_pad_type_0 = const()[name = tensor("outputs_pad_type_0"), val = tensor("valid")]; tensor outputs_strides_0 = const()[name = tensor("outputs_strides_0"), val = tensor([10])]; tensor outputs_pad_0 = const()[name = tensor("outputs_pad_0"), val = tensor([0, 0])]; tensor outputs_dilations_0 = const()[name = tensor("outputs_dilations_0"), val = tensor([1])]; tensor outputs_groups_0 = const()[name = tensor("outputs_groups_0"), val = tensor(1)]; tensor outputs = conv(dilations = outputs_dilations_0, groups = outputs_groups_0, pad = outputs_pad_0, pad_type = outputs_pad_type_0, strides = outputs_strides_0, weight = filters, x = waveform)[name = tensor("outputs")]; tensor input_1 = abs(x = outputs)[name = tensor("input_1")]; tensor var_119 = const()[name = tensor("op_119"), val = tensor([3])]; tensor var_120 = const()[name = tensor("op_120"), val = tensor([3])]; tensor input_3_pad_type_0 = const()[name = tensor("input_3_pad_type_0"), val = tensor("custom")]; tensor input_3_pad_0 = const()[name = tensor("input_3_pad_0"), val = tensor([0, 0])]; tensor input_3_ceil_mode_0 = const()[name = tensor("input_3_ceil_mode_0"), val = tensor(false)]; tensor input_3 = max_pool(ceil_mode = input_3_ceil_mode_0, kernel_sizes = var_119, pad = input_3_pad_0, pad_type = input_3_pad_type_0, strides = var_120, x = input_1)[name = tensor("input_3")]; tensor input_5 = instance_norm(beta = sincnet_norm1d_0_bias, epsilon = var_24, gamma = sincnet_norm1d_0_weight, x = input_3)[name = tensor("input_5")]; tensor input_7 = leaky_relu(alpha = var_9, x = input_5)[name = tensor("input_7")]; tensor input_9_pad_type_0 = const()[name = tensor("input_9_pad_type_0"), val = tensor("valid")]; tensor input_9_strides_0 = const()[name = tensor("input_9_strides_0"), val = tensor([1])]; tensor input_9_pad_0 = const()[name = tensor("input_9_pad_0"), val = tensor([0, 0])]; tensor input_9_dilations_0 = const()[name = tensor("input_9_dilations_0"), val = tensor([1])]; tensor input_9_groups_0 = const()[name = tensor("input_9_groups_0"), val = tensor(1)]; tensor input_9 = conv(bias = sincnet_conv1d_1_bias, dilations = input_9_dilations_0, groups = input_9_groups_0, pad = input_9_pad_0, pad_type = input_9_pad_type_0, strides = input_9_strides_0, weight = sincnet_conv1d_1_weight, x = input_7)[name = tensor("input_9")]; tensor var_135 = const()[name = tensor("op_135"), val = tensor([3])]; tensor var_136 = const()[name = tensor("op_136"), val = tensor([3])]; tensor input_11_pad_type_0 = const()[name = tensor("input_11_pad_type_0"), val = tensor("custom")]; tensor input_11_pad_0 = const()[name = tensor("input_11_pad_0"), val = tensor([0, 0])]; tensor input_11_ceil_mode_0 = const()[name = tensor("input_11_ceil_mode_0"), val = tensor(false)]; tensor input_11 = max_pool(ceil_mode = input_11_ceil_mode_0, kernel_sizes = var_135, pad = input_11_pad_0, pad_type = input_11_pad_type_0, strides = var_136, x = input_9)[name = tensor("input_11")]; tensor input_13 = instance_norm(beta = sincnet_norm1d_1_bias, epsilon = var_24, gamma = sincnet_norm1d_1_weight, x = input_11)[name = tensor("input_13")]; tensor input_15 = leaky_relu(alpha = var_9, x = input_13)[name = tensor("input_15")]; tensor input_17_pad_type_0 = const()[name = tensor("input_17_pad_type_0"), val = tensor("valid")]; tensor input_17_strides_0 = const()[name = tensor("input_17_strides_0"), val = tensor([1])]; tensor input_17_pad_0 = const()[name = tensor("input_17_pad_0"), val = tensor([0, 0])]; tensor input_17_dilations_0 = const()[name = tensor("input_17_dilations_0"), val = tensor([1])]; tensor input_17_groups_0 = const()[name = tensor("input_17_groups_0"), val = tensor(1)]; tensor input_17 = conv(bias = sincnet_conv1d_2_bias, dilations = input_17_dilations_0, groups = input_17_groups_0, pad = input_17_pad_0, pad_type = input_17_pad_type_0, strides = input_17_strides_0, weight = sincnet_conv1d_2_weight, x = input_15)[name = tensor("input_17")]; tensor var_151 = const()[name = tensor("op_151"), val = tensor([3])]; tensor var_152 = const()[name = tensor("op_152"), val = tensor([3])]; tensor input_19_pad_type_0 = const()[name = tensor("input_19_pad_type_0"), val = tensor("custom")]; tensor input_19_pad_0 = const()[name = tensor("input_19_pad_0"), val = tensor([0, 0])]; tensor input_19_ceil_mode_0 = const()[name = tensor("input_19_ceil_mode_0"), val = tensor(false)]; tensor input_19 = max_pool(ceil_mode = input_19_ceil_mode_0, kernel_sizes = var_151, pad = input_19_pad_0, pad_type = input_19_pad_type_0, strides = var_152, x = input_17)[name = tensor("input_19")]; tensor input_21 = instance_norm(beta = sincnet_norm1d_2_bias, epsilon = var_24, gamma = sincnet_norm1d_2_weight, x = input_19)[name = tensor("input_21")]; tensor x = leaky_relu(alpha = var_9, x = input_21)[name = tensor("x")]; tensor transpose_4_perm_0 = const()[name = tensor("transpose_4_perm_0"), val = tensor([2, 0, 1])]; tensor add_0 = const()[name = tensor("add_0"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(452800)))]; tensor add_1 = const()[name = tensor("add_1"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(454912)))]; tensor concat_4 = const()[name = tensor("concat_4"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(457024)))]; tensor concat_5 = const()[name = tensor("concat_5"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(579968)))]; tensor concat_6 = const()[name = tensor("concat_6"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(842176)))]; tensor concat_7 = const()[name = tensor("concat_7"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(965120)))]; tensor input_25_lstm_layer_0_lstm_h0_reshaped = const()[name = tensor("input_25_lstm_layer_0_lstm_h0_reshaped"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1227328)))]; tensor input_25_lstm_layer_0_direction_0 = const()[name = tensor("input_25_lstm_layer_0_direction_0"), val = tensor("bidirectional")]; tensor input_25_lstm_layer_0_output_sequence_0 = const()[name = tensor("input_25_lstm_layer_0_output_sequence_0"), val = tensor(true)]; tensor input_25_lstm_layer_0_recurrent_activation_0 = const()[name = tensor("input_25_lstm_layer_0_recurrent_activation_0"), val = tensor("sigmoid")]; tensor input_25_lstm_layer_0_cell_activation_0 = const()[name = tensor("input_25_lstm_layer_0_cell_activation_0"), val = tensor("tanh")]; tensor input_25_lstm_layer_0_activation_0 = const()[name = tensor("input_25_lstm_layer_0_activation_0"), val = tensor("tanh")]; tensor transpose_4 = transpose(perm = transpose_4_perm_0, x = x)[name = tensor("transpose_6")]; tensor input_25_lstm_layer_0_0, tensor input_25_lstm_layer_0_1, tensor input_25_lstm_layer_0_2 = lstm(activation = input_25_lstm_layer_0_activation_0, bias = add_0, bias_back = add_1, cell_activation = input_25_lstm_layer_0_cell_activation_0, direction = input_25_lstm_layer_0_direction_0, initial_c = input_25_lstm_layer_0_lstm_h0_reshaped, initial_h = input_25_lstm_layer_0_lstm_h0_reshaped, output_sequence = input_25_lstm_layer_0_output_sequence_0, recurrent_activation = input_25_lstm_layer_0_recurrent_activation_0, weight_hh = concat_5, weight_hh_back = concat_7, weight_ih = concat_4, weight_ih_back = concat_6, x = transpose_4)[name = tensor("input_25_lstm_layer_0")]; tensor add_2 = const()[name = tensor("add_2"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1228416)))]; tensor add_3 = const()[name = tensor("add_3"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1230528)))]; tensor concat_14 = const()[name = tensor("concat_14"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1232640)))]; tensor concat_15 = const()[name = tensor("concat_15"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(1756992)))]; tensor concat_16 = const()[name = tensor("concat_16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(2019200)))]; tensor concat_17 = const()[name = tensor("concat_17"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(2543552)))]; tensor input_25_lstm_layer_1_direction_0 = const()[name = tensor("input_25_lstm_layer_1_direction_0"), val = tensor("bidirectional")]; tensor input_25_lstm_layer_1_output_sequence_0 = const()[name = tensor("input_25_lstm_layer_1_output_sequence_0"), val = tensor(true)]; tensor input_25_lstm_layer_1_recurrent_activation_0 = const()[name = tensor("input_25_lstm_layer_1_recurrent_activation_0"), val = tensor("sigmoid")]; tensor input_25_lstm_layer_1_cell_activation_0 = const()[name = tensor("input_25_lstm_layer_1_cell_activation_0"), val = tensor("tanh")]; tensor input_25_lstm_layer_1_activation_0 = const()[name = tensor("input_25_lstm_layer_1_activation_0"), val = tensor("tanh")]; tensor input_25_lstm_layer_1_0, tensor input_25_lstm_layer_1_1, tensor input_25_lstm_layer_1_2 = lstm(activation = input_25_lstm_layer_1_activation_0, bias = add_2, bias_back = add_3, cell_activation = input_25_lstm_layer_1_cell_activation_0, direction = input_25_lstm_layer_1_direction_0, initial_c = input_25_lstm_layer_0_lstm_h0_reshaped, initial_h = input_25_lstm_layer_0_lstm_h0_reshaped, output_sequence = input_25_lstm_layer_1_output_sequence_0, recurrent_activation = input_25_lstm_layer_1_recurrent_activation_0, weight_hh = concat_15, weight_hh_back = concat_17, weight_ih = concat_14, weight_ih_back = concat_16, x = input_25_lstm_layer_0_0)[name = tensor("input_25_lstm_layer_1")]; tensor add_4 = const()[name = tensor("add_4"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(2805760)))]; tensor add_5 = const()[name = tensor("add_5"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(2807872)))]; tensor concat_24 = const()[name = tensor("concat_24"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(2809984)))]; tensor concat_25 = const()[name = tensor("concat_25"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(3334336)))]; tensor concat_26 = const()[name = tensor("concat_26"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(3596544)))]; tensor concat_27 = const()[name = tensor("concat_27"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(4120896)))]; tensor input_25_lstm_layer_2_direction_0 = const()[name = tensor("input_25_lstm_layer_2_direction_0"), val = tensor("bidirectional")]; tensor input_25_lstm_layer_2_output_sequence_0 = const()[name = tensor("input_25_lstm_layer_2_output_sequence_0"), val = tensor(true)]; tensor input_25_lstm_layer_2_recurrent_activation_0 = const()[name = tensor("input_25_lstm_layer_2_recurrent_activation_0"), val = tensor("sigmoid")]; tensor input_25_lstm_layer_2_cell_activation_0 = const()[name = tensor("input_25_lstm_layer_2_cell_activation_0"), val = tensor("tanh")]; tensor input_25_lstm_layer_2_activation_0 = const()[name = tensor("input_25_lstm_layer_2_activation_0"), val = tensor("tanh")]; tensor input_25_lstm_layer_2_0, tensor input_25_lstm_layer_2_1, tensor input_25_lstm_layer_2_2 = lstm(activation = input_25_lstm_layer_2_activation_0, bias = add_4, bias_back = add_5, cell_activation = input_25_lstm_layer_2_cell_activation_0, direction = input_25_lstm_layer_2_direction_0, initial_c = input_25_lstm_layer_0_lstm_h0_reshaped, initial_h = input_25_lstm_layer_0_lstm_h0_reshaped, output_sequence = input_25_lstm_layer_2_output_sequence_0, recurrent_activation = input_25_lstm_layer_2_recurrent_activation_0, weight_hh = concat_25, weight_hh_back = concat_27, weight_ih = concat_24, weight_ih_back = concat_26, x = input_25_lstm_layer_1_0)[name = tensor("input_25_lstm_layer_2")]; tensor add_6 = const()[name = tensor("add_6"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(4383104)))]; tensor add_7 = const()[name = tensor("add_7"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(4385216)))]; tensor concat_34 = const()[name = tensor("concat_34"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(4387328)))]; tensor concat_35 = const()[name = tensor("concat_35"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(4911680)))]; tensor concat_36 = const()[name = tensor("concat_36"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(5173888)))]; tensor concat_37 = const()[name = tensor("concat_37"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(5698240)))]; tensor input_25_batch_first_direction_0 = const()[name = tensor("input_25_batch_first_direction_0"), val = tensor("bidirectional")]; tensor input_25_batch_first_output_sequence_0 = const()[name = tensor("input_25_batch_first_output_sequence_0"), val = tensor(true)]; tensor input_25_batch_first_recurrent_activation_0 = const()[name = tensor("input_25_batch_first_recurrent_activation_0"), val = tensor("sigmoid")]; tensor input_25_batch_first_cell_activation_0 = const()[name = tensor("input_25_batch_first_cell_activation_0"), val = tensor("tanh")]; tensor input_25_batch_first_activation_0 = const()[name = tensor("input_25_batch_first_activation_0"), val = tensor("tanh")]; tensor input_25_batch_first_0, tensor input_25_batch_first_1, tensor input_25_batch_first_2 = lstm(activation = input_25_batch_first_activation_0, bias = add_6, bias_back = add_7, cell_activation = input_25_batch_first_cell_activation_0, direction = input_25_batch_first_direction_0, initial_c = input_25_lstm_layer_0_lstm_h0_reshaped, initial_h = input_25_lstm_layer_0_lstm_h0_reshaped, output_sequence = input_25_batch_first_output_sequence_0, recurrent_activation = input_25_batch_first_recurrent_activation_0, weight_hh = concat_35, weight_hh_back = concat_37, weight_ih = concat_34, weight_ih_back = concat_36, x = input_25_lstm_layer_2_0)[name = tensor("input_25_batch_first")]; tensor input_25_perm_0 = const()[name = tensor("input_25_perm_0"), val = tensor([1, 0, 2])]; tensor input_25 = transpose(perm = input_25_perm_0, x = input_25_batch_first_0)[name = tensor("transpose_5")]; tensor input_27 = linear(bias = linear_0_bias, weight = linear_0_weight, x = input_25)[name = tensor("linear_0")]; tensor var_220 = const()[name = tensor("op_220"), val = tensor(0x1.47ae14p-7)]; tensor input_29 = leaky_relu(alpha = var_220, x = input_27)[name = tensor("input_29")]; tensor input_31 = linear(bias = linear_1_bias, weight = linear_1_weight, x = input_29)[name = tensor("linear_1")]; tensor var_225 = const()[name = tensor("op_225"), val = tensor(0x1.47ae14p-7)]; tensor input_33 = leaky_relu(alpha = var_225, x = input_31)[name = tensor("input_33")]; tensor input = linear(bias = classifier_bias, weight = classifier_weight, x = input_33)[name = tensor("linear_2")]; tensor var_231 = const()[name = tensor("op_231"), val = tensor(-1)]; tensor var_232_softmax = softmax(axis = var_231, x = input)[name = tensor("op_232_softmax")]; tensor var_232_epsilon_0 = const()[name = tensor("op_232_epsilon_0"), val = tensor(0x1p-149)]; tensor log_probs = log(epsilon = var_232_epsilon_0, x = var_232_softmax)[name = tensor("op_232")]; } -> (log_probs); }