C1_W1_Assignment UNQ_C3 need help with tensor operations

In calculating the weighted loss, both y_true and y_pred are Tensors. I am new working with tensors and cannot figure out how to perform arithmetic operations with tensors and scalars. Any guidance how to compute 1-y_true and 1-y_pred? Or should I convert both y_true and y_pred first to numpy array?

see if this helps you