TF Ops (Part 1)

Learn about common arithmetic and string operations performed on tensors in the TF framework.

We'll cover the following

The TF framework provides us with a variety of ops. Here, we discuss commonly used arithmetic and string ops.

Arithmetic ops

Some commonly used arithmetic ops supported by the TF framework include:

  • tf.add() for addition

  • tf.subtract() for subtraction

  • tf.multiply() for multiplication

  • tf.divide() for division

  • tf.pow() for taking the power

  • tf.square() for taking the square

  • tf.exp() for exponentiation

We implement these operations in the following code example:

Get hands-on with 1400+ tech skills courses.