(shape, device=get_default_device())
| 1793 | |
| 1794 | |
| 1795 | def zeros(shape, device=get_default_device()): |
| 1796 | ret = Tensor(shape, device=device) |
| 1797 | ret.set_value(0.0) |
| 1798 | return ret |
| 1799 | |
| 1800 | |
| 1801 | def ones(shape, device=get_default_device()): |
nothing calls this directly
no test coverage detected