Skip to content

Instantly share code, notes, and snippets.

View Zhengwu-Miao's full-sized avatar

zhengwu Miao Zhengwu-Miao

View GitHub Profile
@piyueh
piyueh / tf_keras_tfp_lbfgs.py
Last active September 19, 2024 08:45
Optimize TensorFlow & Keras models with L-BFGS from TensorFlow Probability
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Pi-Yueh Chuang <pychuang@gwu.edu>
#
# Distributed under terms of the MIT license.
"""An example of using tfp.optimizer.lbfgs_minimize to optimize a TensorFlow model.