# Assign {#openvino_docs_ops_infrastructure_Assign_3} @sphinxdirective **Versioned name**: *Assign-3* **Category**: *Infrastructure* **Short description**: *Assign* sets an input value to the ``variable_id`` variable. **Detailed description**: *Assign* operation sets an input value to the ``variable_id`` variable. This value will be returned by *ReadValue* operation on next infer if variable was not reset. The operation checks that the type and shape of the input are the same as declared in ``variable_id`` and returns an error otherwise. **Attributes**: * *variable_id* * **Description**: identificator of the variable to be updated * **Range of values**: any non-empty string * **Type**: string * **Required**: *yes* **Inputs** * **1**: ``new_value`` - input tensor of any supported type. **Required.** **Outputs** * **1**: tensor with the same shape and type as ``new_value``. **Example** .. code-block:: console 1 3 224 224 @endsphinxdirective