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>
As I read on [the script that runs when you run npm start](https://github.com/facebook/create-react-app/blob/next/packages/react-dev-utils/openBrowser.js), you may set an environment variable called BROWSER before running the `npm start`

For example (on linux):

```
(export BROWSER=firefox;  npm start)

```

also, you may open the browsers after starting:

```
npm start &
firefox http://localhost:3000
safari http://localhost:3000

```

Save it to a something.sh and run this shell script. If you are on windows, you may do something similar on .bat script