https://github.com/GPflow/GPflow
Revision d3ca3c90f9e1b644a0b902e6ad9296ea2a7168c4 authored by joelberkeley-pio on 17 March 2020, 19:12:46 UTC, committed by GitHub on 17 March 2020, 19:12:46 UTC
TensorFlow does not allow setting a tf.Variable's `trainable` property; this brings GPflow Parameter objects in line with that behaviour. gpflow.set_utilities() can be used to change the _trainable state for gpflow.Parameter and tf.Variable objects as well as recursively for tf/gpflow Modules.

Note that set_trainable() should not be used inside functions that will be wrapped in tf.function() (see #1335).
1 parent e680397
Raw File
Tip revision: d3ca3c90f9e1b644a0b902e6ad9296ea2a7168c4 authored by joelberkeley-pio on 17 March 2020, 19:12:46 UTC
remove trainable setter on Parameter (#1323)
Tip revision: d3ca3c9
Makefile
.PHONY: help clean dev-install install package format test

help:
	@echo "The following make targets are available:"
	@echo "	dev-install		install all dependencies for dev environment and sets a egg link to the project sources"
	@echo "	install			install all dependencies and the project in the current environment"
	@echo "	package			build pip package"
	@echo "	test			run all tests in parallel"
	@echo "	clean			removes package, build files and egg info"

clean:
	rm -rf dist *.egg-info build

dev-install:
	pip install -e .

install:
	pip install .

package:
	python setup.py bdist

format:
	black -t py36 --line-length=100 gpflow tests

test:
	pytest -v --durations=10 tests/
back to top