Files
openvino/docs/ops/infrastructure/Constant_1.md
Nikolay Tyukaev ef45b5da8d Doc Migration (master) (#1377)
* Doc Migration from Gitlab (#1289)

* doc migration

* fix

* Update FakeQuantize_1.md

* Update performance_benchmarks.md

* Updates graphs for FPGA

* Update performance_benchmarks.md

* Change DL Workbench structure (#1)

* Changed DL Workbench structure

* Fixed tags

* fixes

* Update ie_docs.xml

* Update performance_benchmarks_faq.md

* Fixes in DL Workbench layout

* Fixes for CVS-31290

* [DL Workbench] Minor correction

* Fix for CVS-30955

* Added nGraph deprecation notice as requested by Zoe

* fix broken links in api doxy layouts

* CVS-31131 fixes

* Additional fixes

* Fixed POT TOC

* Update PAC_Configure.md

PAC DCP 1.2.1 install guide.

* Update inference_engine_intro.md

* fix broken link

* Update opset.md

* fix

* added opset4 to layout

* added new opsets to layout, set labels for them

* Update VisionAcceleratorFPGA_Configure.md

Updated from 2020.3 to 2020.4

Co-authored-by: domi2000 <domi2000@users.noreply.github.com>
2020-07-20 17:36:08 +03:00

1.5 KiB

Constant

Versioned name: Constant-1

Category: Infrastructure

Short description: Constant operation produces a tensor with content read from binary file by offset and size.

Attributes

  • offset

    • Description: specifies position in binary file with weights where the content of the constant begins; value in bytes
    • Range of values: non-negative integer value
    • Type: int
    • Default value: none
    • Required: yes
  • size

    • Description: size of constant content in binary files; value in bytes
    • Range of values: positive integer bigger than zero
    • Type: int
    • Default value: none
    • Required: yes
  • element_type

    • Description: the type of element of output tensor
    • Range of values: u1, u8, u16, u32, u64, i8, i16, i32, i64, f16, f32, boolean, bf16
    • Type: string
    • Default value: None
    • Required: Yes
  • shape

    • Description: the shape of the output tensor
    • Range of values: list of non-negative integers, empty list is allowed, which means 0D or scalar tensor
    • Type: int[]
    • Default value: None
    • Required: Yes

Example

<layer ... type="Constant">
    <data offset="1000" size="256" element_type="f32" shape="8,8"/>
    <output>
        <port id="1">
            <dim>8</dim>
            <dim>8</dim>
        </port>
    </output>
</layer>