File size: 784 Bytes
7502e01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "name": "loop_029",
  "op_type": "loop_029",
  "description": "Scale each FP64 element by an integer power of two",
  "tags": [
    "simd-loop"
  ],
  "axes": {
    "N": {
      "type": "var",
      "description": "Array length"
    }
  },
  "inputs": {
    "input": {
      "shape": [
        "N"
      ],
      "dtype": "float64"
    },
    "scale": {
      "shape": [
        "N"
      ],
      "dtype": "int64"
    }
  },
  "outputs": {
    "output": {
      "shape": [
        "N"
      ],
      "dtype": "float64",
      "description": "Output array"
    }
  },
  "reference": "import numpy as np\n\ndef run(input, scale):\n    return np.ldexp(input, scale.astype(np.int32))\n",
  "simd_loop_meta": {
    "output_inplace": false,
    "array_pad": 0,
    "scratch": []
  }
}