TensorProcessor

TensorProcessor คลาสสาธารณะ

TensorProcessor เป็นคลาสตัวช่วยสำหรับเทนเซอร์ก่อนการประมวลผลและหลังการประมวลผล มันสามารถเปลี่ยน TensorBuffer ไปเป็นอีกอันหนึ่งได้โดยการรันเชนของ TensorOperator

ตัวอย่างการใช้งาน:

   TensorProcessor processor = new TensorProcessor.Builder().add(new NormalizeOp(1, 2)).build();
   TensorBuffer anotherTensorBuffer = processor.process(tensorBuffer);
 

คลาสที่ซ้อนกัน

ระดับ TensorProcessor.Builder ตัวสร้างเพื่อสร้าง TensorProcessor ซึ่งสามารถดำเนินการได้ในภายหลัง

วิธีการสืบทอด