program(1.0) [buildInfo = dict, tensor>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}, {"coremltools-component-torch", "2.12.1"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})] { func main(tensor input_ids) { tensor embedding_weight = const()[name = tensor("embedding_weight"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(64)))]; tensor var_11_batch_dims_0 = const()[name = tensor("op_11_batch_dims_0"), val = tensor(0)]; tensor var_11_validate_indices_0 = const()[name = tensor("op_11_validate_indices_0"), val = tensor(false)]; tensor greater_equal_0_y_0 = const()[name = tensor("greater_equal_0_y_0"), val = tensor(0)]; tensor greater_equal_0 = greater_equal(x = input_ids, y = greater_equal_0_y_0)[name = tensor("greater_equal_0")]; tensor slice_by_index_0 = const()[name = tensor("slice_by_index_0"), val = tensor(151936)]; tensor add_0 = add(x = input_ids, y = slice_by_index_0)[name = tensor("add_0")]; tensor select_0 = select(a = input_ids, b = add_0, cond = greater_equal_0)[name = tensor("select_0")]; tensor var_11_axis_1 = const()[name = tensor("op_11_axis_1"), val = tensor(0)]; tensor token_embeddings = gather(axis = var_11_axis_1, batch_dims = var_11_batch_dims_0, indices = select_0, validate_indices = var_11_validate_indices_0, x = embedding_weight)[name = tensor("op_11")]; } -> (token_embeddings); }