Relative Content

Tag Archive for pythonnumpytensorflowkerasneural-network

Division by neural network: Cannot take the length of shape with unknown rank

I am trying to code a neural network to multiply and divide two numbers by using a method similar to the one outlined here. First, I coded models for adding and subtracting two numbers, and squaring a number. For division, I then used the reciprocal of the divisor and multiplied it with the divident as below: