program(1.0) [buildInfo = dict, tensor>({{"coremlc-component-MIL", "3505.3.2"}, {"coremlc-version", "3505.4.1"}, {"coremltools-component-torch", "2.5.1"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.2"}, {"mldb_token", "mldb-7mar5o8y6j"}})] { func main(tensor embedding) { tensor embedding_to_fp16_dtype_0 = const()[name = tensor("embedding_to_fp16_dtype_0"), val = tensor("fp16")]; tensor base_model_classifier_0_weight_to_fp16 = const()[name = tensor("base_model_classifier_0_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(64)))]; tensor base_model_classifier_0_bias_to_fp16 = const()[name = tensor("base_model_classifier_0_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(262272)))]; tensor embedding_to_fp16 = cast(dtype = embedding_to_fp16_dtype_0, x = embedding)[name = tensor("cast_2")]; tensor linear_0_cast_fp16 = linear(bias = base_model_classifier_0_bias_to_fp16, weight = base_model_classifier_0_weight_to_fp16, x = embedding_to_fp16)[name = tensor("linear_0_cast_fp16")]; tensor input_3_rank2_expansion_axes_0 = const()[name = tensor("input_3_rank2_expansion_axes_0"), val = tensor([-1])]; tensor input_3_rank2_expansion_cast_fp16 = expand_dims(axes = input_3_rank2_expansion_axes_0, x = linear_0_cast_fp16)[name = tensor("input_3_rank2_expansion_cast_fp16")]; tensor base_model_classifier_1_running_mean_to_fp16 = const()[name = tensor("base_model_classifier_1_running_mean_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(262848)))]; tensor base_model_classifier_1_running_var_to_fp16 = const()[name = tensor("base_model_classifier_1_running_var_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(263424)))]; tensor base_model_classifier_1_weight_to_fp16 = const()[name = tensor("base_model_classifier_1_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(264000)))]; tensor base_model_classifier_1_bias_to_fp16 = const()[name = tensor("base_model_classifier_1_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(264576)))]; tensor var_4_to_fp16 = const()[name = tensor("op_4_to_fp16"), val = tensor(0x1.5p-17)]; tensor input_3_batch_norm_1d_cast_fp16 = batch_norm(beta = base_model_classifier_1_bias_to_fp16, epsilon = var_4_to_fp16, gamma = base_model_classifier_1_weight_to_fp16, mean = base_model_classifier_1_running_mean_to_fp16, variance = base_model_classifier_1_running_var_to_fp16, x = input_3_rank2_expansion_cast_fp16)[name = tensor("input_3_batch_norm_1d_cast_fp16")]; tensor input_3_axes_0 = const()[name = tensor("input_3_axes_0"), val = tensor([-1])]; tensor input_3_cast_fp16 = squeeze(axes = input_3_axes_0, x = input_3_batch_norm_1d_cast_fp16)[name = tensor("input_3_cast_fp16")]; tensor input_5_cast_fp16 = relu(x = input_3_cast_fp16)[name = tensor("input_5_cast_fp16")]; tensor base_model_classifier_4_weight_to_fp16 = const()[name = tensor("base_model_classifier_4_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(265152)))]; tensor base_model_classifier_4_bias_to_fp16 = const()[name = tensor("base_model_classifier_4_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(330752)))]; tensor linear_1_cast_fp16 = linear(bias = base_model_classifier_4_bias_to_fp16, weight = base_model_classifier_4_weight_to_fp16, x = input_5_cast_fp16)[name = tensor("linear_1_cast_fp16")]; tensor input_11_rank2_expansion_axes_0 = const()[name = tensor("input_11_rank2_expansion_axes_0"), val = tensor([-1])]; tensor input_11_rank2_expansion_cast_fp16 = expand_dims(axes = input_11_rank2_expansion_axes_0, x = linear_1_cast_fp16)[name = tensor("input_11_rank2_expansion_cast_fp16")]; tensor base_model_classifier_5_running_mean_to_fp16 = const()[name = tensor("base_model_classifier_5_running_mean_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(331072)))]; tensor base_model_classifier_5_running_var_to_fp16 = const()[name = tensor("base_model_classifier_5_running_var_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(331392)))]; tensor base_model_classifier_5_weight_to_fp16 = const()[name = tensor("base_model_classifier_5_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(331712)))]; tensor base_model_classifier_5_bias_to_fp16 = const()[name = tensor("base_model_classifier_5_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(332032)))]; tensor input_11_batch_norm_1d_cast_fp16 = batch_norm(beta = base_model_classifier_5_bias_to_fp16, epsilon = var_4_to_fp16, gamma = base_model_classifier_5_weight_to_fp16, mean = base_model_classifier_5_running_mean_to_fp16, variance = base_model_classifier_5_running_var_to_fp16, x = input_11_rank2_expansion_cast_fp16)[name = tensor("input_11_batch_norm_1d_cast_fp16")]; tensor input_11_axes_0 = const()[name = tensor("input_11_axes_0"), val = tensor([-1])]; tensor input_11_cast_fp16 = squeeze(axes = input_11_axes_0, x = input_11_batch_norm_1d_cast_fp16)[name = tensor("input_11_cast_fp16")]; tensor input_13_cast_fp16 = relu(x = input_11_cast_fp16)[name = tensor("input_13_cast_fp16")]; tensor base_model_classifier_8_weight_to_fp16 = const()[name = tensor("base_model_classifier_8_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(332352)))]; tensor base_model_classifier_8_bias_to_fp16 = const()[name = tensor("base_model_classifier_8_bias_to_fp16"), val = tensor([-0x1.528p-4, 0x1.4bp-4, 0x1.134p-5])]; tensor linear_2_cast_fp16 = linear(bias = base_model_classifier_8_bias_to_fp16, weight = base_model_classifier_8_weight_to_fp16, x = input_13_cast_fp16)[name = tensor("linear_2_cast_fp16")]; tensor linear_2_cast_fp16_to_fp32_dtype_0 = const()[name = tensor("linear_2_cast_fp16_to_fp32_dtype_0"), val = tensor("fp32")]; tensor var_37 = const()[name = tensor("op_37"), val = tensor(1)]; tensor probs_cast_fp16 = softmax(axis = var_37, x = linear_2_cast_fp16)[name = tensor("probs_cast_fp16")]; tensor probs_cast_fp16_to_fp32_dtype_0 = const()[name = tensor("probs_cast_fp16_to_fp32_dtype_0"), val = tensor("fp32")]; tensor preds_axis_0 = const()[name = tensor("preds_axis_0"), val = tensor(1)]; tensor preds_keep_dims_0 = const()[name = tensor("preds_keep_dims_0"), val = tensor(false)]; tensor preds = reduce_argmax(axis = preds_axis_0, keep_dims = preds_keep_dims_0, x = probs_cast_fp16)[name = tensor("preds_cast_fp16")]; tensor reduce_max_0_axes_0 = const()[name = tensor("reduce_max_0_axes_0"), val = tensor([1])]; tensor reduce_max_0_keep_dims_0 = const()[name = tensor("reduce_max_0_keep_dims_0"), val = tensor(false)]; tensor reduce_max_0_cast_fp16 = reduce_max(axes = reduce_max_0_axes_0, keep_dims = reduce_max_0_keep_dims_0, x = probs_cast_fp16)[name = tensor("reduce_max_0_cast_fp16")]; tensor var_63_to_fp16 = const()[name = tensor("op_63_to_fp16"), val = tensor(0x1.cccp-1)]; tensor var_64_cast_fp16 = greater_equal(x = reduce_max_0_cast_fp16, y = var_63_to_fp16)[name = tensor("op_64_cast_fp16")]; tensor expand_dims_0 = const()[name = tensor("expand_dims_0"), val = tensor([2])]; tensor thresholded_preds = select(a = preds, b = expand_dims_0, cond = var_64_cast_fp16)[name = tensor("op_65")]; tensor probs = cast(dtype = probs_cast_fp16_to_fp32_dtype_0, x = probs_cast_fp16)[name = tensor("cast_0")]; tensor logits = cast(dtype = linear_2_cast_fp16_to_fp32_dtype_0, x = linear_2_cast_fp16)[name = tensor("cast_1")]; } -> (logits, probs, preds, thresholded_preds); }