File size: 1,308 Bytes
2a7051a | 1 2 3 4 5 6 7 8 9 10 11 | program(1.0)
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3600.16.1"}, {"coremlc-version", "3600.25.2"}, {"coremltools-component-torch", "2.7.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})]
{
func main<ios17>(tensor<fp32, [1, 1024]> hidden) {
tensor<string, []> hidden_to_fp16_dtype_0 = const()[name = tensor<string, []>("hidden_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
tensor<fp16, [7152, 1024]> l_weight_to_fp16 = const()[name = tensor<string, []>("l_weight_to_fp16"), val = tensor<fp16, [7152, 1024]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64)))];
tensor<fp16, [7152]> l_bias_to_fp16 = const()[name = tensor<string, []>("l_bias_to_fp16"), val = tensor<fp16, [7152]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(14647424)))];
tensor<fp16, [1, 1024]> hidden_to_fp16 = cast(dtype = hidden_to_fp16_dtype_0, x = hidden)[name = tensor<string, []>("cast_1")];
tensor<fp16, [1, 7152]> logits = linear(bias = l_bias_to_fp16, weight = l_weight_to_fp16, x = hidden_to_fp16)[name = tensor<string, []>("linear_0_cast_fp16")];
} -> (logits);
} |