MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TensorPass

Function TensorPass

source/val/validate_tensor.cpp:233–247  ·  view source on GitHub ↗

Validates correctness of tensor instructions.

Source from the content-addressed store, hash-verified

231
232// Validates correctness of tensor instructions.
233spv_result_t TensorPass(ValidationState_t& _, const Instruction* inst) {
234 (void)_;
235 const spv::Op opcode = inst->opcode();
236 switch (opcode) {
237 case spv::Op::OpTensorReadARM:
238 return ValidateTensorRead(_, inst);
239 case spv::Op::OpTensorWriteARM:
240 return ValidateTensorWrite(_, inst);
241 case spv::Op::OpTensorQuerySizeARM:
242 return ValidateTensorQuerySize(_, inst);
243 default:
244 break;
245 }
246 return SPV_SUCCESS;
247}
248
249} // namespace val
250} // namespace spvtools

Calls 4

ValidateTensorReadFunction · 0.85
ValidateTensorWriteFunction · 0.85
ValidateTensorQuerySizeFunction · 0.85
opcodeMethod · 0.45

Tested by

no test coverage detected