aufklarer commited on
Commit
788d084
·
verified ·
1 Parent(s): c07a17c

Upload folder using huggingface_hub

Browse files
Sortformer_streaming.mlmodelc/analytics/coremldata.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b2f5178505a0b70de0e06b5a83e79b4e6964436d52b14744bf4a24b37c743675
3
  size 202
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67d10dc1e813b0586d40a1599722fa57834c69e56a864a762f128c04c5111d07
3
  size 202
Sortformer_streaming.mlmodelc/metadata.json CHANGED
@@ -1,7 +1,7 @@
1
  [
2
  {
3
  "metadataOutputVersion" : "3.0",
4
- "storagePrecision" : "Mixed (Float16, Float32)",
5
  "outputSchema" : [
6
  {
7
  "hasShapeFlexibility" : "0",
@@ -60,7 +60,7 @@
60
  "Ios17.sub" : 6,
61
  "Ios17.conv" : 56,
62
  "Ios16.relu" : 23,
63
- "Ios17.cast" : 18,
64
  "Ios17.linear" : 248,
65
  "Ios17.concat" : 1,
66
  "Ios17.floorDiv" : 3,
@@ -69,7 +69,7 @@
69
  "Ios16.silu" : 51,
70
  "Ios17.mul" : 119
71
  },
72
- "computePrecision" : "Mixed (Float16, Float32, Int32)",
73
  "isUpdatable" : "0",
74
  "stateSchema" : [
75
 
 
1
  [
2
  {
3
  "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
  "outputSchema" : [
6
  {
7
  "hasShapeFlexibility" : "0",
 
60
  "Ios17.sub" : 6,
61
  "Ios17.conv" : 56,
62
  "Ios16.relu" : 23,
63
+ "Ios17.cast" : 24,
64
  "Ios17.linear" : 248,
65
  "Ios17.concat" : 1,
66
  "Ios17.floorDiv" : 3,
 
69
  "Ios16.silu" : 51,
70
  "Ios17.mul" : 119
71
  },
72
+ "computePrecision" : "Mixed (Float16, Float32, Int16, Int32)",
73
  "isUpdatable" : "0",
74
  "stateSchema" : [
75
 
Sortformer_streaming.mlmodelc/model0/coremldata.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5fedc2c3f13135040e608428555f8c301b0e91ab0259aba1c2f7257957e49156
3
  size 574
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:247376e20d452f86a9403bcf44761319a86cd328d32e8299c9ec9b71532bfe50
3
  size 574
Sortformer_streaming.mlmodelc/model0/model.mil CHANGED
@@ -2,21 +2,10 @@ program(1.0)
2
  [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}, {"coremltools-component-torch", "2.11.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.0"}})]
3
  {
4
  func main<ios17>(tensor<fp32, [1, 112, 128]> chunk, tensor<int32, [1]> chunk_lengths, tensor<fp32, [1, 40, 512]> fifo, tensor<int32, [1]> fifo_lengths, tensor<fp32, [1, 188, 512]> spkcache, tensor<int32, [1]> spkcache_lengths) {
5
- tensor<fp32, [256]> model_encoder_pre_encode_conv_0_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_0_bias"), val = tensor<fp32, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(64)))];
6
- tensor<fp32, [256, 1, 3, 3]> model_encoder_pre_encode_conv_0_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_0_weight"), val = tensor<fp32, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(1152)))];
7
- tensor<fp32, [256]> model_encoder_pre_encode_conv_2_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_2_bias"), val = tensor<fp32, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(10432)))];
8
- tensor<fp32, [256, 1, 3, 3]> model_encoder_pre_encode_conv_2_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_2_weight"), val = tensor<fp32, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(11520)))];
9
- tensor<fp32, [256]> model_encoder_pre_encode_conv_3_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_3_bias"), val = tensor<fp32, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(20800)))];
10
- tensor<fp32, [256, 256, 1, 1]> model_encoder_pre_encode_conv_3_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_3_weight"), val = tensor<fp32, [256, 256, 1, 1]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(21888)))];
11
- tensor<fp32, [256]> model_encoder_pre_encode_conv_5_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_5_bias"), val = tensor<fp32, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(284096)))];
12
- tensor<fp32, [256, 1, 3, 3]> model_encoder_pre_encode_conv_5_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_5_weight"), val = tensor<fp32, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(285184)))];
13
- tensor<fp32, [256]> model_encoder_pre_encode_conv_6_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_6_bias"), val = tensor<fp32, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(294464)))];
14
- tensor<fp32, [256, 256, 1, 1]> model_encoder_pre_encode_conv_6_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_6_weight"), val = tensor<fp32, [256, 256, 1, 1]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(295552)))];
15
- tensor<fp32, [512]> model_encoder_pre_encode_out_bias = const()[name = tensor<string, []>("model_encoder_pre_encode_out_bias"), val = tensor<fp32, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(557760)))];
16
- tensor<fp32, [512, 4096]> model_encoder_pre_encode_out_weight = const()[name = tensor<string, []>("model_encoder_pre_encode_out_weight"), val = tensor<fp32, [512, 4096]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(559872)))];
17
  tensor<int32, [1]> tensor_1_axes_0 = const()[name = tensor<string, []>("tensor_1_axes_0"), val = tensor<int32, [1]>([1])];
18
- tensor<fp32, [1, 1, 112, 128]> tensor_1 = expand_dims(axes = tensor_1_axes_0, x = chunk)[name = tensor<string, []>("tensor_1")];
19
- tensor<string, []> cast_0_dtype_0 = const()[name = tensor<string, []>("cast_0_dtype_0"), val = tensor<string, []>("fp32")];
 
20
  tensor<int32, [1, 112]> expand_dims_0 = const()[name = tensor<string, []>("expand_dims_0"), val = tensor<int32, [1, 112]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111]])];
21
  tensor<int32, [1]> var_40_axes_0 = const()[name = tensor<string, []>("op_40_axes_0"), val = tensor<int32, [1]>([1])];
22
  tensor<int32, [1, 1]> var_40 = expand_dims(axes = var_40_axes_0, x = chunk_lengths)[name = tensor<string, []>("op_40")];
@@ -25,144 +14,162 @@ program(1.0)
25
  tensor<bool, [1, 112, 1]> var_42 = expand_dims(axes = var_42_axes_0, x = time_mask_1)[name = tensor<string, []>("op_42")];
26
  tensor<int32, [3]> var_44_reps_0 = const()[name = tensor<string, []>("op_44_reps_0"), val = tensor<int32, [3]>([1, 1, 128])];
27
  tensor<bool, [1, 112, 128]> var_44 = tile(reps = var_44_reps_0, x = var_42)[name = tensor<string, []>("op_44")];
28
- tensor<string, []> cast_2_dtype_0 = const()[name = tensor<string, []>("cast_2_dtype_0"), val = tensor<string, []>("fp32")];
29
  tensor<int32, [1]> var_50_axes_0 = const()[name = tensor<string, []>("op_50_axes_0"), val = tensor<int32, [1]>([1])];
30
- tensor<fp32, [1, 112, 128]> cast_2 = cast(dtype = cast_2_dtype_0, x = var_44)[name = tensor<string, []>("cast_25")];
31
- tensor<fp32, [1, 1, 112, 128]> var_50 = expand_dims(axes = var_50_axes_0, x = cast_2)[name = tensor<string, []>("op_50")];
32
- tensor<fp32, [1, 1, 112, 128]> input_1 = mul(x = tensor_1, y = var_50)[name = tensor<string, []>("input_1")];
 
33
  tensor<string, []> tensor_3_pad_type_0 = const()[name = tensor<string, []>("tensor_3_pad_type_0"), val = tensor<string, []>("custom")];
34
  tensor<int32, [4]> tensor_3_pad_0 = const()[name = tensor<string, []>("tensor_3_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
35
  tensor<int32, [2]> tensor_3_strides_0 = const()[name = tensor<string, []>("tensor_3_strides_0"), val = tensor<int32, [2]>([2, 2])];
36
  tensor<int32, [2]> tensor_3_dilations_0 = const()[name = tensor<string, []>("tensor_3_dilations_0"), val = tensor<int32, [2]>([1, 1])];
37
  tensor<int32, []> tensor_3_groups_0 = const()[name = tensor<string, []>("tensor_3_groups_0"), val = tensor<int32, []>(1)];
38
- tensor<fp32, [1, 256, 56, 64]> tensor_3 = conv(bias = model_encoder_pre_encode_conv_0_bias, dilations = tensor_3_dilations_0, groups = tensor_3_groups_0, pad = tensor_3_pad_0, pad_type = tensor_3_pad_type_0, strides = tensor_3_strides_0, weight = model_encoder_pre_encode_conv_0_weight, x = input_1)[name = tensor<string, []>("tensor_3")];
39
- tensor<fp32, []> var_61_promoted = const()[name = tensor<string, []>("op_61_promoted"), val = tensor<fp32, []>(0x1p+0)];
40
- tensor<fp32, [1]> cast_0 = cast(dtype = cast_0_dtype_0, x = chunk_lengths)[name = tensor<string, []>("cast_26")];
41
- tensor<fp32, [1]> var_62 = add(x = cast_0, y = var_61_promoted)[name = tensor<string, []>("op_62")];
42
- tensor<fp32, []> var_63_promoted = const()[name = tensor<string, []>("op_63_promoted"), val = tensor<fp32, []>(0x1p+0)];
43
- tensor<fp32, [1]> var_64 = add(x = var_62, y = var_63_promoted)[name = tensor<string, []>("op_64")];
44
- tensor<fp32, []> var_65_promoted = const()[name = tensor<string, []>("op_65_promoted"), val = tensor<fp32, []>(0x1.8p+1)];
45
- tensor<fp32, [1]> var_66 = sub(x = var_64, y = var_65_promoted)[name = tensor<string, []>("op_66")];
46
- tensor<fp32, []> var_21_promoted = const()[name = tensor<string, []>("op_21_promoted"), val = tensor<fp32, []>(0x1p+1)];
47
- tensor<fp32, [1]> floor_div_0 = floor_div(x = var_66, y = var_21_promoted)[name = tensor<string, []>("floor_div_0")];
48
- tensor<fp32, []> var_68_promoted = const()[name = tensor<string, []>("op_68_promoted"), val = tensor<fp32, []>(0x1p+0)];
49
- tensor<fp32, [1]> current_lengths_3 = add(x = floor_div_0, y = var_68_promoted)[name = tensor<string, []>("current_lengths_3")];
 
 
 
50
  tensor<string, []> cast_3_dtype_0 = const()[name = tensor<string, []>("cast_3_dtype_0"), val = tensor<string, []>("int32")];
51
  tensor<int32, [1, 56]> expand_dims_1 = const()[name = tensor<string, []>("expand_dims_1"), val = tensor<int32, [1, 56]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55]])];
52
  tensor<int32, [1]> var_77_axes_0 = const()[name = tensor<string, []>("op_77_axes_0"), val = tensor<int32, [1]>([1])];
53
- tensor<int32, [1]> cast_3 = cast(dtype = cast_3_dtype_0, x = current_lengths_3)[name = tensor<string, []>("cast_24")];
54
- tensor<int32, [1, 1]> var_77 = expand_dims(axes = var_77_axes_0, x = cast_3)[name = tensor<string, []>("op_77")];
55
  tensor<bool, [1, 56]> time_mask_3 = less(x = expand_dims_1, y = var_77)[name = tensor<string, []>("time_mask_3")];
56
  tensor<int32, [1]> var_79_axes_0 = const()[name = tensor<string, []>("op_79_axes_0"), val = tensor<int32, [1]>([-1])];
57
  tensor<bool, [1, 56, 1]> var_79 = expand_dims(axes = var_79_axes_0, x = time_mask_3)[name = tensor<string, []>("op_79")];
58
  tensor<int32, [3]> var_81_reps_0 = const()[name = tensor<string, []>("op_81_reps_0"), val = tensor<int32, [3]>([1, 1, 64])];
59
  tensor<bool, [1, 56, 64]> var_81 = tile(reps = var_81_reps_0, x = var_79)[name = tensor<string, []>("op_81")];
60
- tensor<string, []> cast_4_dtype_0 = const()[name = tensor<string, []>("cast_4_dtype_0"), val = tensor<string, []>("fp32")];
61
  tensor<int32, [1]> var_87_axes_0 = const()[name = tensor<string, []>("op_87_axes_0"), val = tensor<int32, [1]>([1])];
62
- tensor<fp32, [1, 56, 64]> cast_4 = cast(dtype = cast_4_dtype_0, x = var_81)[name = tensor<string, []>("cast_23")];
63
- tensor<fp32, [1, 1, 56, 64]> var_87 = expand_dims(axes = var_87_axes_0, x = cast_4)[name = tensor<string, []>("op_87")];
 
64
  tensor<int32, [4]> expanded_mask_3_reps_0 = const()[name = tensor<string, []>("expanded_mask_3_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
65
- tensor<fp32, [1, 256, 56, 64]> expanded_mask_3 = tile(reps = expanded_mask_3_reps_0, x = var_87)[name = tensor<string, []>("expanded_mask_3")];
66
- tensor<fp32, [1, 256, 56, 64]> input_3 = mul(x = tensor_3, y = expanded_mask_3)[name = tensor<string, []>("input_3")];
67
- tensor<fp32, [1, 256, 56, 64]> tensor_5 = relu(x = input_3)[name = tensor<string, []>("tensor_5")];
68
- tensor<fp32, [1, 256, 56, 64]> input_5 = mul(x = tensor_5, y = expanded_mask_3)[name = tensor<string, []>("input_5")];
69
  tensor<string, []> tensor_7_pad_type_0 = const()[name = tensor<string, []>("tensor_7_pad_type_0"), val = tensor<string, []>("custom")];
70
  tensor<int32, [4]> tensor_7_pad_0 = const()[name = tensor<string, []>("tensor_7_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
71
  tensor<int32, [2]> tensor_7_strides_0 = const()[name = tensor<string, []>("tensor_7_strides_0"), val = tensor<int32, [2]>([2, 2])];
72
  tensor<int32, []> tensor_7_groups_0 = const()[name = tensor<string, []>("tensor_7_groups_0"), val = tensor<int32, []>(256)];
73
  tensor<int32, [2]> tensor_7_dilations_0 = const()[name = tensor<string, []>("tensor_7_dilations_0"), val = tensor<int32, [2]>([1, 1])];
74
- tensor<fp32, [1, 256, 28, 32]> tensor_7 = conv(bias = model_encoder_pre_encode_conv_2_bias, dilations = tensor_7_dilations_0, groups = tensor_7_groups_0, pad = tensor_7_pad_0, pad_type = tensor_7_pad_type_0, strides = tensor_7_strides_0, weight = model_encoder_pre_encode_conv_2_weight, x = input_5)[name = tensor<string, []>("tensor_7")];
75
- tensor<fp32, []> var_107_promoted = const()[name = tensor<string, []>("op_107_promoted"), val = tensor<fp32, []>(0x1p+0)];
76
- tensor<fp32, [1]> var_108 = add(x = current_lengths_3, y = var_107_promoted)[name = tensor<string, []>("op_108")];
77
- tensor<fp32, []> var_109_promoted = const()[name = tensor<string, []>("op_109_promoted"), val = tensor<fp32, []>(0x1p+0)];
78
- tensor<fp32, [1]> var_110 = add(x = var_108, y = var_109_promoted)[name = tensor<string, []>("op_110")];
79
- tensor<fp32, []> var_111_promoted = const()[name = tensor<string, []>("op_111_promoted"), val = tensor<fp32, []>(0x1.8p+1)];
80
- tensor<fp32, [1]> var_112 = sub(x = var_110, y = var_111_promoted)[name = tensor<string, []>("op_112")];
81
- tensor<fp32, []> var_21_promoted_1 = const()[name = tensor<string, []>("op_21_promoted_1"), val = tensor<fp32, []>(0x1p+1)];
82
- tensor<fp32, [1]> floor_div_1 = floor_div(x = var_112, y = var_21_promoted_1)[name = tensor<string, []>("floor_div_1")];
83
- tensor<fp32, []> var_114_promoted = const()[name = tensor<string, []>("op_114_promoted"), val = tensor<fp32, []>(0x1p+0)];
84
- tensor<fp32, [1]> current_lengths_5 = add(x = floor_div_1, y = var_114_promoted)[name = tensor<string, []>("current_lengths_5")];
 
 
85
  tensor<string, []> cast_5_dtype_0 = const()[name = tensor<string, []>("cast_5_dtype_0"), val = tensor<string, []>("int32")];
86
  tensor<int32, [1, 28]> expand_dims_2 = const()[name = tensor<string, []>("expand_dims_2"), val = tensor<int32, [1, 28]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]])];
87
  tensor<int32, [1]> var_123_axes_0 = const()[name = tensor<string, []>("op_123_axes_0"), val = tensor<int32, [1]>([1])];
88
- tensor<int32, [1]> cast_5 = cast(dtype = cast_5_dtype_0, x = current_lengths_5)[name = tensor<string, []>("cast_22")];
89
- tensor<int32, [1, 1]> var_123 = expand_dims(axes = var_123_axes_0, x = cast_5)[name = tensor<string, []>("op_123")];
90
  tensor<bool, [1, 28]> time_mask_5 = less(x = expand_dims_2, y = var_123)[name = tensor<string, []>("time_mask_5")];
91
  tensor<int32, [1]> var_125_axes_0 = const()[name = tensor<string, []>("op_125_axes_0"), val = tensor<int32, [1]>([-1])];
92
  tensor<bool, [1, 28, 1]> var_125 = expand_dims(axes = var_125_axes_0, x = time_mask_5)[name = tensor<string, []>("op_125")];
93
  tensor<int32, [3]> var_127_reps_0 = const()[name = tensor<string, []>("op_127_reps_0"), val = tensor<int32, [3]>([1, 1, 32])];
94
  tensor<bool, [1, 28, 32]> var_127 = tile(reps = var_127_reps_0, x = var_125)[name = tensor<string, []>("op_127")];
95
- tensor<string, []> cast_6_dtype_0 = const()[name = tensor<string, []>("cast_6_dtype_0"), val = tensor<string, []>("fp32")];
96
  tensor<int32, [1]> var_133_axes_0 = const()[name = tensor<string, []>("op_133_axes_0"), val = tensor<int32, [1]>([1])];
97
- tensor<fp32, [1, 28, 32]> cast_6 = cast(dtype = cast_6_dtype_0, x = var_127)[name = tensor<string, []>("cast_21")];
98
- tensor<fp32, [1, 1, 28, 32]> var_133 = expand_dims(axes = var_133_axes_0, x = cast_6)[name = tensor<string, []>("op_133")];
 
99
  tensor<int32, [4]> expanded_mask_7_reps_0 = const()[name = tensor<string, []>("expanded_mask_7_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
100
- tensor<fp32, [1, 256, 28, 32]> expanded_mask_7 = tile(reps = expanded_mask_7_reps_0, x = var_133)[name = tensor<string, []>("expanded_mask_7")];
101
- tensor<fp32, [1, 256, 28, 32]> input_7 = mul(x = tensor_7, y = expanded_mask_7)[name = tensor<string, []>("input_7")];
102
  tensor<string, []> tensor_9_pad_type_0 = const()[name = tensor<string, []>("tensor_9_pad_type_0"), val = tensor<string, []>("valid")];
103
  tensor<int32, [2]> tensor_9_strides_0 = const()[name = tensor<string, []>("tensor_9_strides_0"), val = tensor<int32, [2]>([1, 1])];
104
  tensor<int32, [4]> tensor_9_pad_0 = const()[name = tensor<string, []>("tensor_9_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
105
  tensor<int32, [2]> tensor_9_dilations_0 = const()[name = tensor<string, []>("tensor_9_dilations_0"), val = tensor<int32, [2]>([1, 1])];
106
  tensor<int32, []> tensor_9_groups_0 = const()[name = tensor<string, []>("tensor_9_groups_0"), val = tensor<int32, []>(1)];
107
- tensor<fp32, [1, 256, 28, 32]> tensor_9 = conv(bias = model_encoder_pre_encode_conv_3_bias, dilations = tensor_9_dilations_0, groups = tensor_9_groups_0, pad = tensor_9_pad_0, pad_type = tensor_9_pad_type_0, strides = tensor_9_strides_0, weight = model_encoder_pre_encode_conv_3_weight, x = input_7)[name = tensor<string, []>("tensor_9")];
108
- tensor<fp32, [1, 256, 28, 32]> input_9 = mul(x = tensor_9, y = expanded_mask_7)[name = tensor<string, []>("input_9")];
109
- tensor<fp32, [1, 256, 28, 32]> tensor_11 = relu(x = input_9)[name = tensor<string, []>("tensor_11")];
110
- tensor<fp32, [1, 256, 28, 32]> input_11 = mul(x = tensor_11, y = expanded_mask_7)[name = tensor<string, []>("input_11")];
 
 
111
  tensor<string, []> tensor_13_pad_type_0 = const()[name = tensor<string, []>("tensor_13_pad_type_0"), val = tensor<string, []>("custom")];
112
  tensor<int32, [4]> tensor_13_pad_0 = const()[name = tensor<string, []>("tensor_13_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
113
  tensor<int32, [2]> tensor_13_strides_0 = const()[name = tensor<string, []>("tensor_13_strides_0"), val = tensor<int32, [2]>([2, 2])];
114
  tensor<int32, []> tensor_13_groups_0 = const()[name = tensor<string, []>("tensor_13_groups_0"), val = tensor<int32, []>(256)];
115
  tensor<int32, [2]> tensor_13_dilations_0 = const()[name = tensor<string, []>("tensor_13_dilations_0"), val = tensor<int32, [2]>([1, 1])];
116
- tensor<fp32, [1, 256, 14, 16]> tensor_13 = conv(bias = model_encoder_pre_encode_conv_5_bias, dilations = tensor_13_dilations_0, groups = tensor_13_groups_0, pad = tensor_13_pad_0, pad_type = tensor_13_pad_type_0, strides = tensor_13_strides_0, weight = model_encoder_pre_encode_conv_5_weight, x = input_11)[name = tensor<string, []>("tensor_13")];
117
- tensor<fp32, []> var_168_promoted = const()[name = tensor<string, []>("op_168_promoted"), val = tensor<fp32, []>(0x1p+0)];
118
- tensor<fp32, [1]> var_169 = add(x = current_lengths_5, y = var_168_promoted)[name = tensor<string, []>("op_169")];
119
- tensor<fp32, []> var_170_promoted = const()[name = tensor<string, []>("op_170_promoted"), val = tensor<fp32, []>(0x1p+0)];
120
- tensor<fp32, [1]> var_171 = add(x = var_169, y = var_170_promoted)[name = tensor<string, []>("op_171")];
121
- tensor<fp32, []> var_172_promoted = const()[name = tensor<string, []>("op_172_promoted"), val = tensor<fp32, []>(0x1.8p+1)];
122
- tensor<fp32, [1]> var_173 = sub(x = var_171, y = var_172_promoted)[name = tensor<string, []>("op_173")];
123
- tensor<fp32, []> var_21_promoted_2 = const()[name = tensor<string, []>("op_21_promoted_2"), val = tensor<fp32, []>(0x1p+1)];
124
- tensor<fp32, [1]> floor_div_2 = floor_div(x = var_173, y = var_21_promoted_2)[name = tensor<string, []>("floor_div_2")];
125
- tensor<fp32, []> var_175_promoted = const()[name = tensor<string, []>("op_175_promoted"), val = tensor<fp32, []>(0x1p+0)];
126
- tensor<fp32, [1]> current_lengths = add(x = floor_div_2, y = var_175_promoted)[name = tensor<string, []>("current_lengths")];
 
 
127
  tensor<string, []> cast_7_dtype_0 = const()[name = tensor<string, []>("cast_7_dtype_0"), val = tensor<string, []>("int32")];
128
  tensor<int32, [1, 14]> expand_dims_3 = const()[name = tensor<string, []>("expand_dims_3"), val = tensor<int32, [1, 14]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]])];
129
  tensor<int32, [1]> var_184_axes_0 = const()[name = tensor<string, []>("op_184_axes_0"), val = tensor<int32, [1]>([1])];
130
- tensor<int32, [1]> cast_7 = cast(dtype = cast_7_dtype_0, x = current_lengths)[name = tensor<string, []>("cast_20")];
131
- tensor<int32, [1, 1]> var_184 = expand_dims(axes = var_184_axes_0, x = cast_7)[name = tensor<string, []>("op_184")];
132
  tensor<bool, [1, 14]> time_mask = less(x = expand_dims_3, y = var_184)[name = tensor<string, []>("time_mask")];
133
  tensor<int32, [1]> var_186_axes_0 = const()[name = tensor<string, []>("op_186_axes_0"), val = tensor<int32, [1]>([-1])];
134
  tensor<bool, [1, 14, 1]> var_186 = expand_dims(axes = var_186_axes_0, x = time_mask)[name = tensor<string, []>("op_186")];
135
  tensor<int32, [3]> var_188_reps_0 = const()[name = tensor<string, []>("op_188_reps_0"), val = tensor<int32, [3]>([1, 1, 16])];
136
  tensor<bool, [1, 14, 16]> var_188 = tile(reps = var_188_reps_0, x = var_186)[name = tensor<string, []>("op_188")];
137
- tensor<string, []> cast_8_dtype_0 = const()[name = tensor<string, []>("cast_8_dtype_0"), val = tensor<string, []>("fp32")];
138
  tensor<int32, [1]> var_194_axes_0 = const()[name = tensor<string, []>("op_194_axes_0"), val = tensor<int32, [1]>([1])];
139
- tensor<fp32, [1, 14, 16]> cast_8 = cast(dtype = cast_8_dtype_0, x = var_188)[name = tensor<string, []>("cast_19")];
140
- tensor<fp32, [1, 1, 14, 16]> var_194 = expand_dims(axes = var_194_axes_0, x = cast_8)[name = tensor<string, []>("op_194")];
 
141
  tensor<int32, [4]> expanded_mask_13_reps_0 = const()[name = tensor<string, []>("expanded_mask_13_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
142
- tensor<fp32, [1, 256, 14, 16]> expanded_mask_13 = tile(reps = expanded_mask_13_reps_0, x = var_194)[name = tensor<string, []>("expanded_mask_13")];
143
- tensor<fp32, [1, 256, 14, 16]> input_13 = mul(x = tensor_13, y = expanded_mask_13)[name = tensor<string, []>("input_13")];
144
  tensor<string, []> tensor_15_pad_type_0 = const()[name = tensor<string, []>("tensor_15_pad_type_0"), val = tensor<string, []>("valid")];
145
  tensor<int32, [2]> tensor_15_strides_0 = const()[name = tensor<string, []>("tensor_15_strides_0"), val = tensor<int32, [2]>([1, 1])];
146
  tensor<int32, [4]> tensor_15_pad_0 = const()[name = tensor<string, []>("tensor_15_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
147
  tensor<int32, [2]> tensor_15_dilations_0 = const()[name = tensor<string, []>("tensor_15_dilations_0"), val = tensor<int32, [2]>([1, 1])];
148
  tensor<int32, []> tensor_15_groups_0 = const()[name = tensor<string, []>("tensor_15_groups_0"), val = tensor<int32, []>(1)];
149
- tensor<fp32, [1, 256, 14, 16]> tensor_15 = conv(bias = model_encoder_pre_encode_conv_6_bias, dilations = tensor_15_dilations_0, groups = tensor_15_groups_0, pad = tensor_15_pad_0, pad_type = tensor_15_pad_type_0, strides = tensor_15_strides_0, weight = model_encoder_pre_encode_conv_6_weight, x = input_13)[name = tensor<string, []>("tensor_15")];
150
- tensor<fp32, [1, 256, 14, 16]> input_15 = mul(x = tensor_15, y = expanded_mask_13)[name = tensor<string, []>("input_15")];
151
- tensor<fp32, [1, 256, 14, 16]> tensor_workaround = relu(x = input_15)[name = tensor<string, []>("tensor_workaround")];
152
- tensor<fp32, [1, 256, 14, 16]> x = mul(x = tensor_workaround, y = expanded_mask_13)[name = tensor<string, []>("x")];
 
 
153
  tensor<int32, [4]> var_228_perm_0 = const()[name = tensor<string, []>("op_228_perm_0"), val = tensor<int32, [4]>([0, 2, 1, 3])];
154
  tensor<int32, [3]> var_229 = const()[name = tensor<string, []>("op_229"), val = tensor<int32, [3]>([1, 14, -1])];
155
- tensor<fp32, [1, 14, 256, 16]> var_228 = transpose(perm = var_228_perm_0, x = x)[name = tensor<string, []>("transpose_0")];
156
- tensor<fp32, [1, 14, 4096]> input = reshape(shape = var_229, x = var_228)[name = tensor<string, []>("input")];
157
- tensor<fp32, [1, 14, 512]> chunk_pre_encoder_embs = linear(bias = model_encoder_pre_encode_out_bias, weight = model_encoder_pre_encode_out_weight, x = input)[name = tensor<string, []>("linear_0")];
 
 
 
158
  tensor<string, []> cast_11_dtype_0 = const()[name = tensor<string, []>("cast_11_dtype_0"), val = tensor<string, []>("int32")];
159
  tensor<int32, [1]> cap0 = const()[name = tensor<string, []>("cap0"), val = tensor<int32, [1]>([188])];
160
  tensor<int32, [1]> cap1 = const()[name = tensor<string, []>("cap1"), val = tensor<int32, [1]>([40])];
161
  tensor<int32, []> var_264 = const()[name = tensor<string, []>("op_264"), val = tensor<int32, []>(1)];
162
  tensor<bool, []> full_interleave_0 = const()[name = tensor<string, []>("full_interleave_0"), val = tensor<bool, []>(false)];
163
- tensor<fp32, [1, 242, 512]> full = concat(axis = var_264, interleave = full_interleave_0, values = (spkcache, fifo, chunk_pre_encoder_embs))[name = tensor<string, []>("full")];
 
 
 
 
164
  tensor<int32, [1]> var_273 = add(x = spkcache_lengths, y = fifo_lengths)[name = tensor<string, []>("op_273")];
165
- tensor<int32, [1]> chunk_pre_encoder_lengths = cast(dtype = cast_11_dtype_0, x = current_lengths)[name = tensor<string, []>("cast_18")];
166
  tensor<int32, [1]> pre_encoder_lengths = add(x = var_273, y = chunk_pre_encoder_lengths)[name = tensor<string, []>("total_length")];
167
  tensor<int32, [242]> positions = const()[name = tensor<string, []>("positions"), val = tensor<int32, [242]>([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241])];
168
  tensor<bool, [242]> var_284 = greater_equal(x = positions, y = spkcache_lengths)[name = tensor<string, []>("op_284")];
@@ -170,10 +177,10 @@ program(1.0)
170
  tensor<bool, [242]> var_290 = greater_equal(x = positions, y = var_273)[name = tensor<string, []>("op_290")];
171
  tensor<string, []> cast_13_dtype_0 = const()[name = tensor<string, []>("cast_13_dtype_0"), val = tensor<string, []>("int32")];
172
  tensor<int32, [1]> var_297 = sub(x = cap0, y = spkcache_lengths)[name = tensor<string, []>("op_297")];
173
- tensor<int32, [242]> cast_12 = cast(dtype = cast_12_dtype_0, x = var_284)[name = tensor<string, []>("cast_17")];
174
  tensor<int32, [242]> var_298 = mul(x = cast_12, y = var_297)[name = tensor<string, []>("op_298")];
175
  tensor<int32, [1]> var_300 = sub(x = cap1, y = fifo_lengths)[name = tensor<string, []>("op_300")];
176
- tensor<int32, [242]> cast_13 = cast(dtype = cast_13_dtype_0, x = var_290)[name = tensor<string, []>("cast_16")];
177
  tensor<int32, [242]> var_301 = mul(x = cast_13, y = var_300)[name = tensor<string, []>("op_301")];
178
  tensor<int32, [242]> offset = add(x = var_298, y = var_301)[name = tensor<string, []>("offset")];
179
  tensor<int32, [242]> var_305 = add(x = positions, y = offset)[name = tensor<string, []>("op_305")];
@@ -189,14 +196,19 @@ program(1.0)
189
  tensor<int32, [1, 242, 512]> gather_idx = tile(reps = gather_idx_reps_0, x = var_315)[name = tensor<string, []>("gather_idx")];
190
  tensor<int32, []> var_320 = const()[name = tensor<string, []>("op_320"), val = tensor<int32, []>(1)];
191
  tensor<bool, []> packed_validate_indices_0 = const()[name = tensor<string, []>("packed_validate_indices_0"), val = tensor<bool, []>(false)];
192
- tensor<fp32, [1, 242, 512]> packed = gather_along_axis(axis = var_320, indices = gather_idx, validate_indices = packed_validate_indices_0, x = full)[name = tensor<string, []>("packed")];
 
 
193
  tensor<bool, [242]> var_323 = less(x = positions, y = pre_encoder_lengths)[name = tensor<string, []>("op_323")];
194
- tensor<string, []> cast_14_dtype_0 = const()[name = tensor<string, []>("cast_14_dtype_0"), val = tensor<string, []>("fp32")];
195
  tensor<int32, [1]> var_330_axes_0 = const()[name = tensor<string, []>("op_330_axes_0"), val = tensor<int32, [1]>([0])];
196
- tensor<fp32, [242]> cast_14 = cast(dtype = cast_14_dtype_0, x = var_323)[name = tensor<string, []>("cast_15")];
197
- tensor<fp32, [1, 242]> var_330 = expand_dims(axes = var_330_axes_0, x = cast_14)[name = tensor<string, []>("op_330")];
 
198
  tensor<int32, [1]> valid_mask_axes_0 = const()[name = tensor<string, []>("valid_mask_axes_0"), val = tensor<int32, [1]>([-1])];
199
- tensor<fp32, [1, 242, 1]> valid_mask = expand_dims(axes = valid_mask_axes_0, x = var_330)[name = tensor<string, []>("valid_mask")];
200
- tensor<fp32, [1, 242, 512]> pre_encoder_embs = mul(x = packed, y = valid_mask)[name = tensor<string, []>("op_333")];
 
 
 
201
  } -> (pre_encoder_embs, pre_encoder_lengths, chunk_pre_encoder_embs, chunk_pre_encoder_lengths);
202
  }
 
2
  [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}, {"coremltools-component-torch", "2.11.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.0"}})]
3
  {
4
  func main<ios17>(tensor<fp32, [1, 112, 128]> chunk, tensor<int32, [1]> chunk_lengths, tensor<fp32, [1, 40, 512]> fifo, tensor<int32, [1]> fifo_lengths, tensor<fp32, [1, 188, 512]> spkcache, tensor<int32, [1]> spkcache_lengths) {
 
 
 
 
 
 
 
 
 
 
 
 
5
  tensor<int32, [1]> tensor_1_axes_0 = const()[name = tensor<string, []>("tensor_1_axes_0"), val = tensor<int32, [1]>([1])];
6
+ tensor<string, []> chunk_to_fp16_dtype_0 = const()[name = tensor<string, []>("chunk_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
7
+ tensor<fp16, [1, 112, 128]> chunk_to_fp16 = cast(dtype = chunk_to_fp16_dtype_0, x = chunk)[name = tensor<string, []>("cast_32")];
8
+ tensor<fp16, [1, 1, 112, 128]> tensor_1_cast_fp16 = expand_dims(axes = tensor_1_axes_0, x = chunk_to_fp16)[name = tensor<string, []>("tensor_1_cast_fp16")];
9
  tensor<int32, [1, 112]> expand_dims_0 = const()[name = tensor<string, []>("expand_dims_0"), val = tensor<int32, [1, 112]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111]])];
10
  tensor<int32, [1]> var_40_axes_0 = const()[name = tensor<string, []>("op_40_axes_0"), val = tensor<int32, [1]>([1])];
11
  tensor<int32, [1, 1]> var_40 = expand_dims(axes = var_40_axes_0, x = chunk_lengths)[name = tensor<string, []>("op_40")];
 
14
  tensor<bool, [1, 112, 1]> var_42 = expand_dims(axes = var_42_axes_0, x = time_mask_1)[name = tensor<string, []>("op_42")];
15
  tensor<int32, [3]> var_44_reps_0 = const()[name = tensor<string, []>("op_44_reps_0"), val = tensor<int32, [3]>([1, 1, 128])];
16
  tensor<bool, [1, 112, 128]> var_44 = tile(reps = var_44_reps_0, x = var_42)[name = tensor<string, []>("op_44")];
 
17
  tensor<int32, [1]> var_50_axes_0 = const()[name = tensor<string, []>("op_50_axes_0"), val = tensor<int32, [1]>([1])];
18
+ tensor<string, []> cast_2_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_2_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
19
+ tensor<fp16, [1, 112, 128]> var_44_to_fp16 = cast(dtype = cast_2_to_fp16_dtype_0, x = var_44)[name = tensor<string, []>("cast_31")];
20
+ tensor<fp16, [1, 1, 112, 128]> var_50_cast_fp16 = expand_dims(axes = var_50_axes_0, x = var_44_to_fp16)[name = tensor<string, []>("op_50_cast_fp16")];
21
+ tensor<fp16, [1, 1, 112, 128]> input_1_cast_fp16 = mul(x = tensor_1_cast_fp16, y = var_50_cast_fp16)[name = tensor<string, []>("input_1_cast_fp16")];
22
  tensor<string, []> tensor_3_pad_type_0 = const()[name = tensor<string, []>("tensor_3_pad_type_0"), val = tensor<string, []>("custom")];
23
  tensor<int32, [4]> tensor_3_pad_0 = const()[name = tensor<string, []>("tensor_3_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
24
  tensor<int32, [2]> tensor_3_strides_0 = const()[name = tensor<string, []>("tensor_3_strides_0"), val = tensor<int32, [2]>([2, 2])];
25
  tensor<int32, [2]> tensor_3_dilations_0 = const()[name = tensor<string, []>("tensor_3_dilations_0"), val = tensor<int32, [2]>([1, 1])];
26
  tensor<int32, []> tensor_3_groups_0 = const()[name = tensor<string, []>("tensor_3_groups_0"), val = tensor<int32, []>(1)];
27
+ tensor<fp16, [256, 1, 3, 3]> model_encoder_pre_encode_conv_0_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_0_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(64)))];
28
+ tensor<fp16, [256]> model_encoder_pre_encode_conv_0_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_0_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(4736)))];
29
+ tensor<fp16, [1, 256, 56, 64]> tensor_3_cast_fp16 = conv(bias = model_encoder_pre_encode_conv_0_bias_to_fp16, dilations = tensor_3_dilations_0, groups = tensor_3_groups_0, pad = tensor_3_pad_0, pad_type = tensor_3_pad_type_0, strides = tensor_3_strides_0, weight = model_encoder_pre_encode_conv_0_weight_to_fp16, x = input_1_cast_fp16)[name = tensor<string, []>("tensor_3_cast_fp16")];
30
+ tensor<string, []> cast_0_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_0_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
31
+ tensor<fp16, []> var_61_promoted_to_fp16 = const()[name = tensor<string, []>("op_61_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
32
+ tensor<fp16, [1]> chunk_lengths_to_fp16 = cast(dtype = cast_0_to_fp16_dtype_0, x = chunk_lengths)[name = tensor<string, []>("cast_30")];
33
+ tensor<fp16, [1]> var_62_cast_fp16 = add(x = chunk_lengths_to_fp16, y = var_61_promoted_to_fp16)[name = tensor<string, []>("op_62_cast_fp16")];
34
+ tensor<fp16, []> var_63_promoted_to_fp16 = const()[name = tensor<string, []>("op_63_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
35
+ tensor<fp16, [1]> var_64_cast_fp16 = add(x = var_62_cast_fp16, y = var_63_promoted_to_fp16)[name = tensor<string, []>("op_64_cast_fp16")];
36
+ tensor<fp16, []> var_65_promoted_to_fp16 = const()[name = tensor<string, []>("op_65_promoted_to_fp16"), val = tensor<fp16, []>(0x1.8p+1)];
37
+ tensor<fp16, [1]> var_66_cast_fp16 = sub(x = var_64_cast_fp16, y = var_65_promoted_to_fp16)[name = tensor<string, []>("op_66_cast_fp16")];
38
+ tensor<fp16, []> var_21_promoted_to_fp16 = const()[name = tensor<string, []>("op_21_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+1)];
39
+ tensor<fp16, [1]> floor_div_0_cast_fp16 = floor_div(x = var_66_cast_fp16, y = var_21_promoted_to_fp16)[name = tensor<string, []>("floor_div_0_cast_fp16")];
40
+ tensor<fp16, []> var_68_promoted_to_fp16 = const()[name = tensor<string, []>("op_68_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
41
+ tensor<fp16, [1]> current_lengths_3_cast_fp16 = add(x = floor_div_0_cast_fp16, y = var_68_promoted_to_fp16)[name = tensor<string, []>("current_lengths_3_cast_fp16")];
42
  tensor<string, []> cast_3_dtype_0 = const()[name = tensor<string, []>("cast_3_dtype_0"), val = tensor<string, []>("int32")];
43
  tensor<int32, [1, 56]> expand_dims_1 = const()[name = tensor<string, []>("expand_dims_1"), val = tensor<int32, [1, 56]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55]])];
44
  tensor<int32, [1]> var_77_axes_0 = const()[name = tensor<string, []>("op_77_axes_0"), val = tensor<int32, [1]>([1])];
45
+ tensor<int32, [1]> current_lengths_3_cast_fp16_to_int32 = cast(dtype = cast_3_dtype_0, x = current_lengths_3_cast_fp16)[name = tensor<string, []>("cast_29")];
46
+ tensor<int32, [1, 1]> var_77 = expand_dims(axes = var_77_axes_0, x = current_lengths_3_cast_fp16_to_int32)[name = tensor<string, []>("op_77")];
47
  tensor<bool, [1, 56]> time_mask_3 = less(x = expand_dims_1, y = var_77)[name = tensor<string, []>("time_mask_3")];
48
  tensor<int32, [1]> var_79_axes_0 = const()[name = tensor<string, []>("op_79_axes_0"), val = tensor<int32, [1]>([-1])];
49
  tensor<bool, [1, 56, 1]> var_79 = expand_dims(axes = var_79_axes_0, x = time_mask_3)[name = tensor<string, []>("op_79")];
50
  tensor<int32, [3]> var_81_reps_0 = const()[name = tensor<string, []>("op_81_reps_0"), val = tensor<int32, [3]>([1, 1, 64])];
51
  tensor<bool, [1, 56, 64]> var_81 = tile(reps = var_81_reps_0, x = var_79)[name = tensor<string, []>("op_81")];
 
52
  tensor<int32, [1]> var_87_axes_0 = const()[name = tensor<string, []>("op_87_axes_0"), val = tensor<int32, [1]>([1])];
53
+ tensor<string, []> cast_4_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_4_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
54
+ tensor<fp16, [1, 56, 64]> var_81_to_fp16 = cast(dtype = cast_4_to_fp16_dtype_0, x = var_81)[name = tensor<string, []>("cast_28")];
55
+ tensor<fp16, [1, 1, 56, 64]> var_87_cast_fp16 = expand_dims(axes = var_87_axes_0, x = var_81_to_fp16)[name = tensor<string, []>("op_87_cast_fp16")];
56
  tensor<int32, [4]> expanded_mask_3_reps_0 = const()[name = tensor<string, []>("expanded_mask_3_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
57
+ tensor<fp16, [1, 256, 56, 64]> expanded_mask_3_cast_fp16 = tile(reps = expanded_mask_3_reps_0, x = var_87_cast_fp16)[name = tensor<string, []>("expanded_mask_3_cast_fp16")];
58
+ tensor<fp16, [1, 256, 56, 64]> input_3_cast_fp16 = mul(x = tensor_3_cast_fp16, y = expanded_mask_3_cast_fp16)[name = tensor<string, []>("input_3_cast_fp16")];
59
+ tensor<fp16, [1, 256, 56, 64]> tensor_5_cast_fp16 = relu(x = input_3_cast_fp16)[name = tensor<string, []>("tensor_5_cast_fp16")];
60
+ tensor<fp16, [1, 256, 56, 64]> input_5_cast_fp16 = mul(x = tensor_5_cast_fp16, y = expanded_mask_3_cast_fp16)[name = tensor<string, []>("input_5_cast_fp16")];
61
  tensor<string, []> tensor_7_pad_type_0 = const()[name = tensor<string, []>("tensor_7_pad_type_0"), val = tensor<string, []>("custom")];
62
  tensor<int32, [4]> tensor_7_pad_0 = const()[name = tensor<string, []>("tensor_7_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
63
  tensor<int32, [2]> tensor_7_strides_0 = const()[name = tensor<string, []>("tensor_7_strides_0"), val = tensor<int32, [2]>([2, 2])];
64
  tensor<int32, []> tensor_7_groups_0 = const()[name = tensor<string, []>("tensor_7_groups_0"), val = tensor<int32, []>(256)];
65
  tensor<int32, [2]> tensor_7_dilations_0 = const()[name = tensor<string, []>("tensor_7_dilations_0"), val = tensor<int32, [2]>([1, 1])];
66
+ tensor<fp16, [256, 1, 3, 3]> model_encoder_pre_encode_conv_2_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_2_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(5312)))];
67
+ tensor<fp16, [256]> model_encoder_pre_encode_conv_2_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_2_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(9984)))];
68
+ tensor<fp16, [1, 256, 28, 32]> tensor_7_cast_fp16 = conv(bias = model_encoder_pre_encode_conv_2_bias_to_fp16, dilations = tensor_7_dilations_0, groups = tensor_7_groups_0, pad = tensor_7_pad_0, pad_type = tensor_7_pad_type_0, strides = tensor_7_strides_0, weight = model_encoder_pre_encode_conv_2_weight_to_fp16, x = input_5_cast_fp16)[name = tensor<string, []>("tensor_7_cast_fp16")];
69
+ tensor<fp16, []> var_107_promoted_to_fp16 = const()[name = tensor<string, []>("op_107_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
70
+ tensor<fp16, [1]> var_108_cast_fp16 = add(x = current_lengths_3_cast_fp16, y = var_107_promoted_to_fp16)[name = tensor<string, []>("op_108_cast_fp16")];
71
+ tensor<fp16, []> var_109_promoted_to_fp16 = const()[name = tensor<string, []>("op_109_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
72
+ tensor<fp16, [1]> var_110_cast_fp16 = add(x = var_108_cast_fp16, y = var_109_promoted_to_fp16)[name = tensor<string, []>("op_110_cast_fp16")];
73
+ tensor<fp16, []> var_111_promoted_to_fp16 = const()[name = tensor<string, []>("op_111_promoted_to_fp16"), val = tensor<fp16, []>(0x1.8p+1)];
74
+ tensor<fp16, [1]> var_112_cast_fp16 = sub(x = var_110_cast_fp16, y = var_111_promoted_to_fp16)[name = tensor<string, []>("op_112_cast_fp16")];
75
+ tensor<fp16, []> var_21_promoted_1_to_fp16 = const()[name = tensor<string, []>("op_21_promoted_1_to_fp16"), val = tensor<fp16, []>(0x1p+1)];
76
+ tensor<fp16, [1]> floor_div_1_cast_fp16 = floor_div(x = var_112_cast_fp16, y = var_21_promoted_1_to_fp16)[name = tensor<string, []>("floor_div_1_cast_fp16")];
77
+ tensor<fp16, []> var_114_promoted_to_fp16 = const()[name = tensor<string, []>("op_114_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
78
+ tensor<fp16, [1]> current_lengths_5_cast_fp16 = add(x = floor_div_1_cast_fp16, y = var_114_promoted_to_fp16)[name = tensor<string, []>("current_lengths_5_cast_fp16")];
79
  tensor<string, []> cast_5_dtype_0 = const()[name = tensor<string, []>("cast_5_dtype_0"), val = tensor<string, []>("int32")];
80
  tensor<int32, [1, 28]> expand_dims_2 = const()[name = tensor<string, []>("expand_dims_2"), val = tensor<int32, [1, 28]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]])];
81
  tensor<int32, [1]> var_123_axes_0 = const()[name = tensor<string, []>("op_123_axes_0"), val = tensor<int32, [1]>([1])];
82
+ tensor<int32, [1]> current_lengths_5_cast_fp16_to_int32 = cast(dtype = cast_5_dtype_0, x = current_lengths_5_cast_fp16)[name = tensor<string, []>("cast_27")];
83
+ tensor<int32, [1, 1]> var_123 = expand_dims(axes = var_123_axes_0, x = current_lengths_5_cast_fp16_to_int32)[name = tensor<string, []>("op_123")];
84
  tensor<bool, [1, 28]> time_mask_5 = less(x = expand_dims_2, y = var_123)[name = tensor<string, []>("time_mask_5")];
85
  tensor<int32, [1]> var_125_axes_0 = const()[name = tensor<string, []>("op_125_axes_0"), val = tensor<int32, [1]>([-1])];
86
  tensor<bool, [1, 28, 1]> var_125 = expand_dims(axes = var_125_axes_0, x = time_mask_5)[name = tensor<string, []>("op_125")];
87
  tensor<int32, [3]> var_127_reps_0 = const()[name = tensor<string, []>("op_127_reps_0"), val = tensor<int32, [3]>([1, 1, 32])];
88
  tensor<bool, [1, 28, 32]> var_127 = tile(reps = var_127_reps_0, x = var_125)[name = tensor<string, []>("op_127")];
 
89
  tensor<int32, [1]> var_133_axes_0 = const()[name = tensor<string, []>("op_133_axes_0"), val = tensor<int32, [1]>([1])];
90
+ tensor<string, []> cast_6_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_6_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
91
+ tensor<fp16, [1, 28, 32]> var_127_to_fp16 = cast(dtype = cast_6_to_fp16_dtype_0, x = var_127)[name = tensor<string, []>("cast_26")];
92
+ tensor<fp16, [1, 1, 28, 32]> var_133_cast_fp16 = expand_dims(axes = var_133_axes_0, x = var_127_to_fp16)[name = tensor<string, []>("op_133_cast_fp16")];
93
  tensor<int32, [4]> expanded_mask_7_reps_0 = const()[name = tensor<string, []>("expanded_mask_7_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
94
+ tensor<fp16, [1, 256, 28, 32]> expanded_mask_7_cast_fp16 = tile(reps = expanded_mask_7_reps_0, x = var_133_cast_fp16)[name = tensor<string, []>("expanded_mask_7_cast_fp16")];
95
+ tensor<fp16, [1, 256, 28, 32]> input_7_cast_fp16 = mul(x = tensor_7_cast_fp16, y = expanded_mask_7_cast_fp16)[name = tensor<string, []>("input_7_cast_fp16")];
96
  tensor<string, []> tensor_9_pad_type_0 = const()[name = tensor<string, []>("tensor_9_pad_type_0"), val = tensor<string, []>("valid")];
97
  tensor<int32, [2]> tensor_9_strides_0 = const()[name = tensor<string, []>("tensor_9_strides_0"), val = tensor<int32, [2]>([1, 1])];
98
  tensor<int32, [4]> tensor_9_pad_0 = const()[name = tensor<string, []>("tensor_9_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
99
  tensor<int32, [2]> tensor_9_dilations_0 = const()[name = tensor<string, []>("tensor_9_dilations_0"), val = tensor<int32, [2]>([1, 1])];
100
  tensor<int32, []> tensor_9_groups_0 = const()[name = tensor<string, []>("tensor_9_groups_0"), val = tensor<int32, []>(1)];
101
+ tensor<fp16, [256, 256, 1, 1]> model_encoder_pre_encode_conv_3_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_3_weight_to_fp16"), val = tensor<fp16, [256, 256, 1, 1]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(10560)))];
102
+ tensor<fp16, [256]> model_encoder_pre_encode_conv_3_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_3_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(141696)))];
103
+ tensor<fp16, [1, 256, 28, 32]> tensor_9_cast_fp16 = conv(bias = model_encoder_pre_encode_conv_3_bias_to_fp16, dilations = tensor_9_dilations_0, groups = tensor_9_groups_0, pad = tensor_9_pad_0, pad_type = tensor_9_pad_type_0, strides = tensor_9_strides_0, weight = model_encoder_pre_encode_conv_3_weight_to_fp16, x = input_7_cast_fp16)[name = tensor<string, []>("tensor_9_cast_fp16")];
104
+ tensor<fp16, [1, 256, 28, 32]> input_9_cast_fp16 = mul(x = tensor_9_cast_fp16, y = expanded_mask_7_cast_fp16)[name = tensor<string, []>("input_9_cast_fp16")];
105
+ tensor<fp16, [1, 256, 28, 32]> tensor_11_cast_fp16 = relu(x = input_9_cast_fp16)[name = tensor<string, []>("tensor_11_cast_fp16")];
106
+ tensor<fp16, [1, 256, 28, 32]> input_11_cast_fp16 = mul(x = tensor_11_cast_fp16, y = expanded_mask_7_cast_fp16)[name = tensor<string, []>("input_11_cast_fp16")];
107
  tensor<string, []> tensor_13_pad_type_0 = const()[name = tensor<string, []>("tensor_13_pad_type_0"), val = tensor<string, []>("custom")];
108
  tensor<int32, [4]> tensor_13_pad_0 = const()[name = tensor<string, []>("tensor_13_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
109
  tensor<int32, [2]> tensor_13_strides_0 = const()[name = tensor<string, []>("tensor_13_strides_0"), val = tensor<int32, [2]>([2, 2])];
110
  tensor<int32, []> tensor_13_groups_0 = const()[name = tensor<string, []>("tensor_13_groups_0"), val = tensor<int32, []>(256)];
111
  tensor<int32, [2]> tensor_13_dilations_0 = const()[name = tensor<string, []>("tensor_13_dilations_0"), val = tensor<int32, [2]>([1, 1])];
112
+ tensor<fp16, [256, 1, 3, 3]> model_encoder_pre_encode_conv_5_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_5_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(142272)))];
113
+ tensor<fp16, [256]> model_encoder_pre_encode_conv_5_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_5_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(146944)))];
114
+ tensor<fp16, [1, 256, 14, 16]> tensor_13_cast_fp16 = conv(bias = model_encoder_pre_encode_conv_5_bias_to_fp16, dilations = tensor_13_dilations_0, groups = tensor_13_groups_0, pad = tensor_13_pad_0, pad_type = tensor_13_pad_type_0, strides = tensor_13_strides_0, weight = model_encoder_pre_encode_conv_5_weight_to_fp16, x = input_11_cast_fp16)[name = tensor<string, []>("tensor_13_cast_fp16")];
115
+ tensor<fp16, []> var_168_promoted_to_fp16 = const()[name = tensor<string, []>("op_168_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
116
+ tensor<fp16, [1]> var_169_cast_fp16 = add(x = current_lengths_5_cast_fp16, y = var_168_promoted_to_fp16)[name = tensor<string, []>("op_169_cast_fp16")];
117
+ tensor<fp16, []> var_170_promoted_to_fp16 = const()[name = tensor<string, []>("op_170_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
118
+ tensor<fp16, [1]> var_171_cast_fp16 = add(x = var_169_cast_fp16, y = var_170_promoted_to_fp16)[name = tensor<string, []>("op_171_cast_fp16")];
119
+ tensor<fp16, []> var_172_promoted_to_fp16 = const()[name = tensor<string, []>("op_172_promoted_to_fp16"), val = tensor<fp16, []>(0x1.8p+1)];
120
+ tensor<fp16, [1]> var_173_cast_fp16 = sub(x = var_171_cast_fp16, y = var_172_promoted_to_fp16)[name = tensor<string, []>("op_173_cast_fp16")];
121
+ tensor<fp16, []> var_21_promoted_2_to_fp16 = const()[name = tensor<string, []>("op_21_promoted_2_to_fp16"), val = tensor<fp16, []>(0x1p+1)];
122
+ tensor<fp16, [1]> floor_div_2_cast_fp16 = floor_div(x = var_173_cast_fp16, y = var_21_promoted_2_to_fp16)[name = tensor<string, []>("floor_div_2_cast_fp16")];
123
+ tensor<fp16, []> var_175_promoted_to_fp16 = const()[name = tensor<string, []>("op_175_promoted_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
124
+ tensor<fp16, [1]> current_lengths_cast_fp16 = add(x = floor_div_2_cast_fp16, y = var_175_promoted_to_fp16)[name = tensor<string, []>("current_lengths_cast_fp16")];
125
  tensor<string, []> cast_7_dtype_0 = const()[name = tensor<string, []>("cast_7_dtype_0"), val = tensor<string, []>("int32")];
126
  tensor<int32, [1, 14]> expand_dims_3 = const()[name = tensor<string, []>("expand_dims_3"), val = tensor<int32, [1, 14]>([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]])];
127
  tensor<int32, [1]> var_184_axes_0 = const()[name = tensor<string, []>("op_184_axes_0"), val = tensor<int32, [1]>([1])];
128
+ tensor<int32, [1]> current_lengths_cast_fp16_to_int32 = cast(dtype = cast_7_dtype_0, x = current_lengths_cast_fp16)[name = tensor<string, []>("cast_25")];
129
+ tensor<int32, [1, 1]> var_184 = expand_dims(axes = var_184_axes_0, x = current_lengths_cast_fp16_to_int32)[name = tensor<string, []>("op_184")];
130
  tensor<bool, [1, 14]> time_mask = less(x = expand_dims_3, y = var_184)[name = tensor<string, []>("time_mask")];
131
  tensor<int32, [1]> var_186_axes_0 = const()[name = tensor<string, []>("op_186_axes_0"), val = tensor<int32, [1]>([-1])];
132
  tensor<bool, [1, 14, 1]> var_186 = expand_dims(axes = var_186_axes_0, x = time_mask)[name = tensor<string, []>("op_186")];
133
  tensor<int32, [3]> var_188_reps_0 = const()[name = tensor<string, []>("op_188_reps_0"), val = tensor<int32, [3]>([1, 1, 16])];
134
  tensor<bool, [1, 14, 16]> var_188 = tile(reps = var_188_reps_0, x = var_186)[name = tensor<string, []>("op_188")];
 
135
  tensor<int32, [1]> var_194_axes_0 = const()[name = tensor<string, []>("op_194_axes_0"), val = tensor<int32, [1]>([1])];
136
+ tensor<string, []> cast_8_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_8_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
137
+ tensor<fp16, [1, 14, 16]> var_188_to_fp16 = cast(dtype = cast_8_to_fp16_dtype_0, x = var_188)[name = tensor<string, []>("cast_24")];
138
+ tensor<fp16, [1, 1, 14, 16]> var_194_cast_fp16 = expand_dims(axes = var_194_axes_0, x = var_188_to_fp16)[name = tensor<string, []>("op_194_cast_fp16")];
139
  tensor<int32, [4]> expanded_mask_13_reps_0 = const()[name = tensor<string, []>("expanded_mask_13_reps_0"), val = tensor<int32, [4]>([1, 256, 1, 1])];
140
+ tensor<fp16, [1, 256, 14, 16]> expanded_mask_13_cast_fp16 = tile(reps = expanded_mask_13_reps_0, x = var_194_cast_fp16)[name = tensor<string, []>("expanded_mask_13_cast_fp16")];
141
+ tensor<fp16, [1, 256, 14, 16]> input_13_cast_fp16 = mul(x = tensor_13_cast_fp16, y = expanded_mask_13_cast_fp16)[name = tensor<string, []>("input_13_cast_fp16")];
142
  tensor<string, []> tensor_15_pad_type_0 = const()[name = tensor<string, []>("tensor_15_pad_type_0"), val = tensor<string, []>("valid")];
143
  tensor<int32, [2]> tensor_15_strides_0 = const()[name = tensor<string, []>("tensor_15_strides_0"), val = tensor<int32, [2]>([1, 1])];
144
  tensor<int32, [4]> tensor_15_pad_0 = const()[name = tensor<string, []>("tensor_15_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
145
  tensor<int32, [2]> tensor_15_dilations_0 = const()[name = tensor<string, []>("tensor_15_dilations_0"), val = tensor<int32, [2]>([1, 1])];
146
  tensor<int32, []> tensor_15_groups_0 = const()[name = tensor<string, []>("tensor_15_groups_0"), val = tensor<int32, []>(1)];
147
+ tensor<fp16, [256, 256, 1, 1]> model_encoder_pre_encode_conv_6_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_6_weight_to_fp16"), val = tensor<fp16, [256, 256, 1, 1]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(147520)))];
148
+ tensor<fp16, [256]> model_encoder_pre_encode_conv_6_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_conv_6_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(278656)))];
149
+ tensor<fp16, [1, 256, 14, 16]> tensor_15_cast_fp16 = conv(bias = model_encoder_pre_encode_conv_6_bias_to_fp16, dilations = tensor_15_dilations_0, groups = tensor_15_groups_0, pad = tensor_15_pad_0, pad_type = tensor_15_pad_type_0, strides = tensor_15_strides_0, weight = model_encoder_pre_encode_conv_6_weight_to_fp16, x = input_13_cast_fp16)[name = tensor<string, []>("tensor_15_cast_fp16")];
150
+ tensor<fp16, [1, 256, 14, 16]> input_15_cast_fp16 = mul(x = tensor_15_cast_fp16, y = expanded_mask_13_cast_fp16)[name = tensor<string, []>("input_15_cast_fp16")];
151
+ tensor<fp16, [1, 256, 14, 16]> tensor_cast_fp16 = relu(x = input_15_cast_fp16)[name = tensor<string, []>("tensor_cast_fp16")];
152
+ tensor<fp16, [1, 256, 14, 16]> x_cast_fp16 = mul(x = tensor_cast_fp16, y = expanded_mask_13_cast_fp16)[name = tensor<string, []>("x_cast_fp16")];
153
  tensor<int32, [4]> var_228_perm_0 = const()[name = tensor<string, []>("op_228_perm_0"), val = tensor<int32, [4]>([0, 2, 1, 3])];
154
  tensor<int32, [3]> var_229 = const()[name = tensor<string, []>("op_229"), val = tensor<int32, [3]>([1, 14, -1])];
155
+ tensor<fp16, [1, 14, 256, 16]> var_228_cast_fp16 = transpose(perm = var_228_perm_0, x = x_cast_fp16)[name = tensor<string, []>("transpose_0")];
156
+ tensor<fp16, [1, 14, 4096]> input_cast_fp16 = reshape(shape = var_229, x = var_228_cast_fp16)[name = tensor<string, []>("input_cast_fp16")];
157
+ tensor<fp16, [512, 4096]> model_encoder_pre_encode_out_weight_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_out_weight_to_fp16"), val = tensor<fp16, [512, 4096]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(279232)))];
158
+ tensor<fp16, [512]> model_encoder_pre_encode_out_bias_to_fp16 = const()[name = tensor<string, []>("model_encoder_pre_encode_out_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/0-weight.bin"), offset = tensor<uint64, []>(4473600)))];
159
+ tensor<fp16, [1, 14, 512]> linear_0_cast_fp16 = linear(bias = model_encoder_pre_encode_out_bias_to_fp16, weight = model_encoder_pre_encode_out_weight_to_fp16, x = input_cast_fp16)[name = tensor<string, []>("linear_0_cast_fp16")];
160
+ tensor<string, []> linear_0_cast_fp16_to_fp32_dtype_0 = const()[name = tensor<string, []>("linear_0_cast_fp16_to_fp32_dtype_0"), val = tensor<string, []>("fp32")];
161
  tensor<string, []> cast_11_dtype_0 = const()[name = tensor<string, []>("cast_11_dtype_0"), val = tensor<string, []>("int32")];
162
  tensor<int32, [1]> cap0 = const()[name = tensor<string, []>("cap0"), val = tensor<int32, [1]>([188])];
163
  tensor<int32, [1]> cap1 = const()[name = tensor<string, []>("cap1"), val = tensor<int32, [1]>([40])];
164
  tensor<int32, []> var_264 = const()[name = tensor<string, []>("op_264"), val = tensor<int32, []>(1)];
165
  tensor<bool, []> full_interleave_0 = const()[name = tensor<string, []>("full_interleave_0"), val = tensor<bool, []>(false)];
166
+ tensor<string, []> spkcache_to_fp16_dtype_0 = const()[name = tensor<string, []>("spkcache_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
167
+ tensor<string, []> fifo_to_fp16_dtype_0 = const()[name = tensor<string, []>("fifo_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
168
+ tensor<fp16, [1, 40, 512]> fifo_to_fp16 = cast(dtype = fifo_to_fp16_dtype_0, x = fifo)[name = tensor<string, []>("cast_20")];
169
+ tensor<fp16, [1, 188, 512]> spkcache_to_fp16 = cast(dtype = spkcache_to_fp16_dtype_0, x = spkcache)[name = tensor<string, []>("cast_21")];
170
+ tensor<fp16, [1, 242, 512]> full_cast_fp16 = concat(axis = var_264, interleave = full_interleave_0, values = (spkcache_to_fp16, fifo_to_fp16, linear_0_cast_fp16))[name = tensor<string, []>("full_cast_fp16")];
171
  tensor<int32, [1]> var_273 = add(x = spkcache_lengths, y = fifo_lengths)[name = tensor<string, []>("op_273")];
172
+ tensor<int32, [1]> chunk_pre_encoder_lengths = cast(dtype = cast_11_dtype_0, x = current_lengths_cast_fp16)[name = tensor<string, []>("cast_22")];
173
  tensor<int32, [1]> pre_encoder_lengths = add(x = var_273, y = chunk_pre_encoder_lengths)[name = tensor<string, []>("total_length")];
174
  tensor<int32, [242]> positions = const()[name = tensor<string, []>("positions"), val = tensor<int32, [242]>([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241])];
175
  tensor<bool, [242]> var_284 = greater_equal(x = positions, y = spkcache_lengths)[name = tensor<string, []>("op_284")];
 
177
  tensor<bool, [242]> var_290 = greater_equal(x = positions, y = var_273)[name = tensor<string, []>("op_290")];
178
  tensor<string, []> cast_13_dtype_0 = const()[name = tensor<string, []>("cast_13_dtype_0"), val = tensor<string, []>("int32")];
179
  tensor<int32, [1]> var_297 = sub(x = cap0, y = spkcache_lengths)[name = tensor<string, []>("op_297")];
180
+ tensor<int32, [242]> cast_12 = cast(dtype = cast_12_dtype_0, x = var_284)[name = tensor<string, []>("cast_19")];
181
  tensor<int32, [242]> var_298 = mul(x = cast_12, y = var_297)[name = tensor<string, []>("op_298")];
182
  tensor<int32, [1]> var_300 = sub(x = cap1, y = fifo_lengths)[name = tensor<string, []>("op_300")];
183
+ tensor<int32, [242]> cast_13 = cast(dtype = cast_13_dtype_0, x = var_290)[name = tensor<string, []>("cast_18")];
184
  tensor<int32, [242]> var_301 = mul(x = cast_13, y = var_300)[name = tensor<string, []>("op_301")];
185
  tensor<int32, [242]> offset = add(x = var_298, y = var_301)[name = tensor<string, []>("offset")];
186
  tensor<int32, [242]> var_305 = add(x = positions, y = offset)[name = tensor<string, []>("op_305")];
 
196
  tensor<int32, [1, 242, 512]> gather_idx = tile(reps = gather_idx_reps_0, x = var_315)[name = tensor<string, []>("gather_idx")];
197
  tensor<int32, []> var_320 = const()[name = tensor<string, []>("op_320"), val = tensor<int32, []>(1)];
198
  tensor<bool, []> packed_validate_indices_0 = const()[name = tensor<string, []>("packed_validate_indices_0"), val = tensor<bool, []>(false)];
199
+ tensor<string, []> gather_idx_to_int16_dtype_0 = const()[name = tensor<string, []>("gather_idx_to_int16_dtype_0"), val = tensor<string, []>("int16")];
200
+ tensor<int16, [1, 242, 512]> gather_idx_to_int16 = cast(dtype = gather_idx_to_int16_dtype_0, x = gather_idx)[name = tensor<string, []>("cast_17")];
201
+ tensor<fp16, [1, 242, 512]> packed_cast_fp16_cast_uint16 = gather_along_axis(axis = var_320, indices = gather_idx_to_int16, validate_indices = packed_validate_indices_0, x = full_cast_fp16)[name = tensor<string, []>("packed_cast_fp16_cast_uint16")];
202
  tensor<bool, [242]> var_323 = less(x = positions, y = pre_encoder_lengths)[name = tensor<string, []>("op_323")];
 
203
  tensor<int32, [1]> var_330_axes_0 = const()[name = tensor<string, []>("op_330_axes_0"), val = tensor<int32, [1]>([0])];
204
+ tensor<string, []> cast_14_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_14_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
205
+ tensor<fp16, [242]> var_323_to_fp16 = cast(dtype = cast_14_to_fp16_dtype_0, x = var_323)[name = tensor<string, []>("cast_16")];
206
+ tensor<fp16, [1, 242]> var_330_cast_fp16 = expand_dims(axes = var_330_axes_0, x = var_323_to_fp16)[name = tensor<string, []>("op_330_cast_fp16")];
207
  tensor<int32, [1]> valid_mask_axes_0 = const()[name = tensor<string, []>("valid_mask_axes_0"), val = tensor<int32, [1]>([-1])];
208
+ tensor<fp16, [1, 242, 1]> valid_mask_cast_fp16 = expand_dims(axes = valid_mask_axes_0, x = var_330_cast_fp16)[name = tensor<string, []>("valid_mask_cast_fp16")];
209
+ tensor<fp16, [1, 242, 512]> var_333_cast_fp16 = mul(x = packed_cast_fp16_cast_uint16, y = valid_mask_cast_fp16)[name = tensor<string, []>("op_333_cast_fp16")];
210
+ tensor<string, []> var_333_cast_fp16_to_fp32_dtype_0 = const()[name = tensor<string, []>("op_333_cast_fp16_to_fp32_dtype_0"), val = tensor<string, []>("fp32")];
211
+ tensor<fp32, [1, 242, 512]> pre_encoder_embs = cast(dtype = var_333_cast_fp16_to_fp32_dtype_0, x = var_333_cast_fp16)[name = tensor<string, []>("cast_15")];
212
+ tensor<fp32, [1, 14, 512]> chunk_pre_encoder_embs = cast(dtype = linear_0_cast_fp16_to_fp32_dtype_0, x = linear_0_cast_fp16)[name = tensor<string, []>("cast_23")];
213
  } -> (pre_encoder_embs, pre_encoder_lengths, chunk_pre_encoder_embs, chunk_pre_encoder_lengths);
214
  }
Sortformer_streaming.mlmodelc/model0/weights/0-weight.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:88a98803e35186b1dfb41d7f748f7cee5093bb6efeb117f56953c17549792fa4
3
- size 8948544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:232fce1518edd08b1fcb0b39add3e7307c8c3ca3e6afa170f6937c57617d38e1
3
+ size 4474688
Sortformer_streaming.mlmodelc/model1/coremldata.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:75440124bc9c0a1ef4439fba1a49b5c4e7921f1d92d1d0bb3c46d884f5c88a5a
3
  size 539
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:511bfca552ef2e9bfb556f3ca467a5f989269ca12a433d35871464854dcae7a8
3
  size 539