forked from Colloportus0/MLIRSmith11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen01046814735861805056-tosa.mlir
25 lines (24 loc) · 4.08 KB
/
gen01046814735861805056-tosa.mlir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module {
func.func @main(%arg0: tensor<1x1x1x1xf32> {iree.identifier = "inputs_0"}) -> (tensor<1x1x1x1xf32> {iree.identifier = "Identity"}, tensor<1x1x1x1xf32> {iree.identifier = "Identity_1"}) {
%0 = "tosa.const"() {value = dense<1.57079637> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%1 = "tosa.const"() {value = dense<0.159154937> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%2 = "tosa.const"() {value = dense<2.000000e+00> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%3 = "tosa.const"() {value = dense<1.000000e+00> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%4 = "tosa.const"() {value = dense<3.276700e+04> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%5 = "tosa.const"() {value = dense<2.38418579E-7> : tensor<1x1x1x1xf32>} : () -> tensor<1x1x1x1xf32>
%6 = "tosa.const"() {value = dense<"0x000092012403B6044706D9076A09FB0A8B0C1B0EAB0F3911C7125514E1156D17F818821A0B1C931D191F9F202322A6232725A7262628A3291E2B982C102E862FFB306D32DE334D35B93624388C39F23A563CB73D163F7340CD4125437A44CC451C476948B349FA4A3F4C804DBF4EFA4F335168529A53C954F4551D5742586359815A9C5BB35CC65DD65EE25FEB60F061F162EE63E764DD65CE66BC67A5688B696C6A4A6B236CF86CC96D956E5E6F2270E1709D7154720673B5735E740375A4754076D8766B77F977837808798979047A7C7AEE7A5C7BC47B297C887CE27C387D897DD57D1C7E5E7E9C7ED47E087F377F617F867FA67FC17FD77FE87FF57FFC7FFF7FFC7FF57FE87FD77FC17FA67F867F617F377F087FD47E9C7E5E7E1C7ED57D897D387DE27C887C297CC47B5C7BEE7A7C7A047A897908798378F9776B77D8764076A47503755E74B573067354729D71E17022705E6F956EC96DF86C236C4A6B6C6A8B69A568BC67CE66DD65E764EE63F162F061EB60E25FD65EC65DB35C9C5B815A635942581D57F455C9549A5368523351FA4FBF4E804D3F4CFA4AB34969481C47CC457A442543CD417340163FB73D563CF23A8C392438B9364D35DE336D32FB30862F102E982C1E2BA3292628A7262725A62323229F20191F931D0B1C821AF8186D17E1155514C7123911AB0F1B0E8B0CFB0A6A09D9074706B6042403920100006EFEDCFC4AFBB9F927F896F605F575F3E5F155F0C7EE39EDABEB1FEA93E808E77EE5F5E36DE2E7E061DFDDDD5ADCD9DA59D9DAD75DD6E2D468D3F0D17AD005CF93CD22CCB3CA47C9DCC774C60EC5AAC349C2EAC08DBF33BEDBBC86BB34BAE4B897B74DB606B5C1B380B241B106B0CDAE98AD66AC37AB0CAAE3A8BEA79DA67FA564A44DA33AA22AA11EA0159F109E0F9D129C199B239A329944985B9775969495B694DD93089337926B91A290DE8F1F8F638EAC8DFA8C4B8CA28BFD8A5C8AC0892889958807887D87F8867786FC8584851285A4843C84D78378831E83C88277822B82E481A28164812C81F880C9809F807A805A803F80298018800B800480018004800B80188029803F805A807A809F80C980F8802C816481A281E4812B827782C8821E837883D7833C84A48412858485FC857786F8867D87078895882889C0895C8AFD8AA28B4B8CFA8CAC8D638E1F8FDE8FA2906B9137920893DD93B694949575965B9744983299239A199B129C0F9D109E159F1EA02AA13AA24DA364A47FA59DA6BEA7E3A80CAA37AB66AC98ADCDAE06B041B180B2C1B306B54DB697B7E4B834BA86BBDBBC33BE8DBFEAC049C2AAC30EC574C6DCC747C9B3CA22CC93CD05CF7AD0F0D168D3E2D45DD6DAD759D9D9DA5ADCDDDD61DFE7E06DE2F5E37EE508E793E81FEAABEB39EDC7EE55F0E5F175F305F596F627F8B9F94AFBDCFC6EFE0000"> : tensor<513xi16>} : () -> tensor<513xi16>
%7 = "tf.Tan"(%arg0) {T = f32} : (tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%8 = "tosa.add"(%7, %0) : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%9 = "tosa.mul"(%8, %1) {shift = 0 : i32} : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%10 = "tosa.floor"(%9) : (tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%11 = "tosa.sub"(%9, %10) : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%12 = "tosa.mul"(%11, %2) {shift = 0 : i32} : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%13 = "tosa.sub"(%12, %3) : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%14 = "tosa.mul"(%13, %4) {shift = 0 : i32} : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
%15 = "tosa.cast"(%14) : (tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xi16>
%16 = "tosa.table"(%15, %6) : (tensor<1x1x1x1xi16>, tensor<513xi16>) -> tensor<1x1x1x1xi32>
%17 = "tosa.cast"(%16) : (tensor<1x1x1x1xi32>) -> tensor<1x1x1x1xf32>
%18 = "tosa.mul"(%17, %5) {shift = 0 : i32} : (tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>) -> tensor<1x1x1x1xf32>
return %7, %18 : tensor<1x1x1x1xf32>, tensor<1x1x1x1xf32>
}
}