{
"op_type": "HansEncode",
"op_list": [
{
"bin_filename": "HansEncode_Float32",
"inputs": [
{
"name": "input_tensor",
"index": 0,
"dtype": "float32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "pdf",
"index": 1,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"outputs": [
{
"name": "pdf",
"index": 0,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "mantissa",
"index": 1,
"dtype": "float32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "fixed",
"index": 2,
"dtype": "float32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "var",
"index": 3,
"dtype": "float32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"attrs": [
{
"name": "statistic",
"dtype": "bool",
"value": false
},
{
"name": "reshuff",
"dtype": "bool",
"value": false
}
]
},
{
"bin_filename": "HansEncode_BFloat16",
"inputs": [
{
"name": "input_tensor",
"index": 0,
"dtype": "bfloat16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "pdf",
"index": 1,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"outputs": [
{
"name": "pdf",
"index": 0,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "mantissa",
"index": 1,
"dtype": "bfloat16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "fixed",
"index": 2,
"dtype": "bfloat16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "var",
"index": 3,
"dtype": "bfloat16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"attrs": [
{
"name": "statistic",
"dtype": "bool",
"value": false
},
{
"name": "reshuff",
"dtype": "bool",
"value": false
}
]
},
{
"bin_filename": "HansEncode_Float16",
"inputs": [
{
"name": "input_tensor",
"index": 0,
"dtype": "float16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "pdf",
"index": 1,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"outputs": [
{
"name": "pdf",
"index": 0,
"dtype": "int32",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "mantissa",
"index": 1,
"dtype": "float16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "fixed",
"index": 2,
"dtype": "float16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
},
{
"name": "var",
"index": 3,
"dtype": "float16",
"format": "ND",
"paramType": "required",
"shape": [
-2
]
}
],
"attrs": [
{
"name": "statistic",
"dtype": "bool",
"value": false
},
{
"name": "reshuff",
"dtype": "bool",
"value": false
}
]
}
]
}