| 55 | } |
| 56 | |
| 57 | Tensor Tensor::empty(TensorShape shape, Device device, DataType dtype, bool use_pinned) { |
| 58 | LoadArgs args; |
| 59 | args.shape = shape; |
| 60 | args.device = device; |
| 61 | args.dtype = dtype; |
| 62 | args.use_pinned = use_pinned; |
| 63 | args.args = std::monostate{}; |
| 64 | return load(LoadOp::Empty, args); |
| 65 | } |
| 66 | |
| 67 | Tensor Tensor::empty_unpinned(TensorShape shape, DataType dtype) { |
| 68 | LoadArgs args; |
no outgoing calls
no test coverage detected