(do)
| 291 | do.random_seed = 1000 |
| 292 | |
| 293 | def run(do): |
| 294 | # Reset each time because 'Y' may already exist in the workspace |
| 295 | # on a different device |
| 296 | workspace.ResetWorkspace() |
| 297 | ws = workspace.C.Workspace() |
| 298 | op = core.CreateOperator( |
| 299 | "XavierFill", [], ["Y"], |
| 300 | device_option=do, |
| 301 | shape=[2]) |
| 302 | ws.run(op) |
| 303 | return ws.blobs["Y"].fetch() |
| 304 | |
| 305 | ys = [run(do) for do in device_options] |
| 306 | for y in ys[1:]: |
no test coverage detected