parameters: (node,
                         data_type : np.dtype)
return_statement: return tensor
docstring: Get the tensor value within the given node according to the input data_type
  
      Parameters
      ----------
      node
          The given tensorflow graph node
      data_type
          The data type of the node
      
      Returns
      ----------
      tf.Tensor
          The tensor value of the given node
docstring_summary: Get the tensor value within the given node according to the input data_type
docstring_tokens: Get the tensor value within the given node according to the input data_type
function: def get_tensor_by_type(node,
                         data_type : np.dtype) -> tf.Tensor:
      """
      Get the tensor value within the given node according to the input data_type
  
      Parameters
      ----------
      node
          The given tensorflow graph node
      data_type
          The data type of the node
      
      Returns
      ----------
      tf.Tensor
          The tensor value of the given node
      """
      if data_type == np.float64:
          tensor = np.array(node.double_val)
      elif data_type == np.float32:
          tensor = np.array(node.float_val)
      else:
          raise RuntimeError('model compression does not support the half precision')
      return tensor
function_tokens: def get_tensor_by_type ( node , data_type : np . dtype ) -> tf . Tensor : if data_type == np . float64 : tensor = np . array ( node . double_val ) elif data_type == np . float32 : tensor = np . array ( node . float_val ) else : raise RuntimeError ( 'model compression does not support the half precision' ) return tensor