(value, shape, dtype=np.float32)
| 191 | |
| 192 | |
| 193 | def fill(value, shape, dtype=np.float32): |
| 194 | assert isinstance(value, (int, float, bool)) |
| 195 | value = np.asarray(value, dtype=dtype) |
| 196 | return broadcast_to(HLOTensor(value, dtype=dtype), shape) |
| 197 | |
| 198 | |
| 199 | def ones(shape, dtype=np.float32): |