TRITONTF_Shape
| 636 | // TRITONTF_Shape |
| 637 | // |
| 638 | TRITONTF_Shape* |
| 639 | TRITONTF_ShapeNew(size_t rank, int64_t* dims) |
| 640 | { |
| 641 | TRITONTF_Shape* shape = new TRITONTF_Shape; |
| 642 | shape->rank_ = rank; |
| 643 | shape->dims_ = nullptr; |
| 644 | if (rank > 0) { |
| 645 | shape->dims_ = new int64_t[rank]; |
| 646 | memcpy(shape->dims_, dims, rank * sizeof(int64_t)); |
| 647 | } |
| 648 | |
| 649 | return shape; |
| 650 | } |
| 651 | |
| 652 | void |
| 653 | TRITONTF_ShapeDelete(TRITONTF_Shape* shape) |
no outgoing calls
no test coverage detected