TensorFlow example numerical neural network

I wanted to make a neural network on TensorFlow that consists of 2 layers (2 input, 1 output). And I need, for example, to input [0, 0] output [0], [1, 0] [1], [1, 1] [0.25] etc. , and to be trained.

Author: AlfaMafka, 2020-10-12