Question: Say that I have y total embeddings which were retrieved using this code

```
embeds = tf.nn.embedding_lookup(embeddings, train_dataset)

```

So the data would look something like this

```
embeds = [embed45, embed2, embed939, embed3, embed32, embed2, . . . etc]

```

And lets say, I want to take the average of groups of 3 embeddings. So something like

```
averaged_embeds = [ averageOf(embed45, embed2, embed939) , averageOf(embed3, embed32, embed2), . . . . etc]

```

so when evaluated it'll look something like this

```
averaged_embeds = [ averagedEmbeds1, averagedEmbeds2, averagedEmbeds3, . . . etc]

```

What is the best way to go about doing that?

My first thought was tf.segment\_mean but as far as I can tell, it can only take averages within each of the embeddings, it doesn't average a bunch of embeddings (let me know if this is wrong). 

There is also tf.reduce\_mean which can averages along a specified dimension, but it'll take the average across all embeddings, not bunches of a particular number.

Answer: 
Create an environment file `.env` at the root of the project directory and add following entry

```
BROWSER=firefox

```

For a complete list of `.env` file configuration, you can check [here](https://facebook.github.io/create-react-app/docs/advanced-configuration) - <https://facebook.github.io/create-react-app/docs/advanced-configuration>
First Install This:-

```
npm install --save cross-env

```

Than and update package.json file `scripts` only :-

**Old**

```
"scripts": {
   "start": "cross-env BROWSER=none react-scripts start",
   "build": "react-scripts build",
   "test": "react-scripts test",
   "eject": "react-scripts eject"

```

},

**Update**

```
"scripts": {
    "start": "cross-env BROWSER=none react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

```