title: How to convert string to float32 in tensorflow
body: <p>I am a new user of tensorflow. I have the following tensor A:</p>
  <pre><code>&lt;tf.Tensor: shape=(3,), dtype=string, numpy=
  array([b'1,2.0,32.29,42.1,16.0,0.60,46.0,0.0,26.0,0.0,-1.31,-0.9'],
    dtype=object)&gt;
  </code></pre>
  <p>I want to get the following two tensors:</p>
  <p>Tensor B: Convert Tensor A to float tensor and get first element of Tensor A:</p>
  <pre><code>&lt;tf.Tensor: shape=(3,), dtype=float, numpy=
  array([1],
    dtype=object)&gt;
  </code></pre>
  <p>Tensor C: Convert Tensor A to float tensor and extract last 4 elements of Tensor B</p>
  <pre><code>&lt;tf.Tensor: shape=(3,), dtype=float, numpy=
  array([26.0,0.0,-1.31,-0.9],
    dtype=object)&gt;
  </code></pre>
  <p>Could you please tell me how I can get Tensor B and Tensor C from Tensor A? Documentation is confusing.</p>