Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tensorflow/kfac

An implementation of KFAC for TensorFlow
https://github.com/tensorflow/kfac

Last synced: about 12 hours ago
JSON representation

An implementation of KFAC for TensorFlow

Awesome Lists containing this project

README

        

# K-FAC: Kronecker-Factored Approximate Curvature

[![Travis](https://img.shields.io/travis/tensorflow/kfac.svg)](https://travis-ci.org/tensorflow/kfac)

**K-FAC in TensorFlow** is an implementation of [K-FAC][kfac-paper], an
approximate second-order optimization method, in TensorFlow.

[kfac-paper]: https://arxiv.org/abs/1503.05671

## Installation

`kfac` is compatible with Python 2 and 3 and can be installed directly via
`pip`,

```shell
# Assumes tensorflow or tensorflow-gpu installed
$ pip install kfac

# Installs with tensorflow-gpu requirement
$ pip install 'kfac[tensorflow_gpu]'

# Installs with tensorflow (cpu) requirement
$ pip install 'kfac[tensorflow]'
```

## KFAC DOCS

Please check [KFAC docs][kfac_docs] for a detailed description with examples
of how to use KFAC. Check the [Keras KFAC docs][keras_docs] for information on
using KFAC with Keras.

[kfac_docs]: https://github.com/tensorflow/kfac/tree/master/docs/index.md
[keras_docs]: https://github.com/tensorflow/kfac/tree/master/kfac/python/keras/README.md