tensorflow::ops::ImmutableConst
#include <array_ops.h>ส่งคืนเทนเซอร์ที่ไม่สามารถเปลี่ยนแปลงได้จากพื้นที่หน่วยความจำ
สรุป
การใช้งานในปัจจุบันใช้ memmap เพื่อแมปเทนเซอร์จากไฟล์
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- dtype: ประเภทของเทนเซอร์ที่ส่งคืน
- รูปร่าง: รูปร่างของเทนเซอร์ที่ส่งคืน
- memory_region_name: ชื่อของพื้นที่หน่วยความจำแบบอ่านอย่างเดียวที่ใช้โดยเทนเซอร์ โปรดดู NewReadOnlyMemoryRegionFromFile ใน tensorflow::Env
การส่งคืนสินค้า:
-
Output: เทนเซอร์เทนเซอร์
ตัวสร้างและตัวทำลาย | |
|---|---|
ImmutableConst (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
tensor | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เทนเซอร์
::tensorflow::Output tensor
หน้าที่สาธารณะ
อิมมิวเทเบิลคอนสท์
ImmutableConst( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const