| 23 | namespace { |
| 24 | |
| 25 | bool IsRankedTensor(ValidationState_t& _, uint32_t id) { |
| 26 | auto inst = _.FindDef(id); |
| 27 | if (!inst || inst->opcode() != spv::Op::OpTypeTensorARM || |
| 28 | inst->words().size() <= 3) { |
| 29 | return false; |
| 30 | } |
| 31 | return true; |
| 32 | } |
| 33 | |
| 34 | uint64_t GetTensorTypeRank(ValidationState_t& _, uint32_t id) { |
| 35 | auto inst = _.FindDef(id); |
no test coverage detected