- 26 2月, 2019 3 次提交
-
-
由 Tom Hennigan 提交于
After attempting to integrate `tf.Module` into existing codebases (e.g. `tf.keras`) we've found that the automatic name scoping is too invasive (e.g. changing op and variable names) and it is desirable to disable it ~everywhere. We propose that name scoping for `tf.Module` becomes opt-in: >>> class MyModule(tf.Module): ... ... @tf.Module.with_name_scope ... def auto_name_scope(self, x): ... if not hasattr(self, 'w'): ... self.w = tf.Variable(1., name='w') ... return x * self.w ... ... def manual_name_scope(self, x): ... if not hasattr(self, 'w'): ... with self.name_scope: ... self.w = tf.Variable(1., name='w') ... return x * self.w ... ... def no_name_scope(self, x): ... if not hasattr(self, 'w'): ... self.w = tf.Variable(1., name='w') ... return x * self.w We will move opt-out name scoping into Sonnet: >>> class MyModule(snt.Module): ... ... def auto_name_scope(self, x): ... if not hasattr(self, 'w'): ... self.w = tf.Variable(1., name='w') ... return x * self.w ... ... @snt.no_name_scope ... def no_name_scope(self, x): ... if not hasattr(self, 'w'): ... self.w = tf.Variable(1., name='w') ... return x * self.w In TF2 name scopes are cosmetic and this should be less of a big deal. We might consider encouraging users who want to filter on names to instead use flatten to extract a state dictionary for their objects (c.f. https://github.com/tensorflow/community/pull/56#discussion_r255048762). I have moved the automatic name scoping logic (Metaclass etc) and associated tests into Sonnet 2. PiperOrigin-RevId: 235540184
-
由 Benjamin Kramer 提交于
It's not clear what this comment refers to, but it's from 2017 and the test just works. PiperOrigin-RevId: 235539638
-
由 Tom Hennigan 提交于
PiperOrigin-RevId: 235536186
-
- 25 2月, 2019 16 次提交
-
-
由 Andr? Susano Pinto 提交于
integration tests. PiperOrigin-RevId: 235526039
-
由 Chris Jones 提交于
PiperOrigin-RevId: 235519570
-
由 Tom Hennigan 提交于
PiperOrigin-RevId: 235518682
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235511159
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235507181
-
由 Benjamin Kramer 提交于
This was fixed in 0bd78003 PiperOrigin-RevId: 235501348
-
由 Benjamin Kramer 提交于
This is a stub implementation that always returns zero as replication is not supported on CPU or GPU currently. PiperOrigin-RevId: 235497567
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235488332
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235485786
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235484830
-
由 Adrian Kuegel 提交于
This probably didn't matter before, but now Sort has a comparison computation. Also add an optimization to not use a convert to BF16 if the user is a convert to F32. PiperOrigin-RevId: 235481597
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235476472
-
由 Sanjoy Das 提交于
PiperOrigin-RevId: 235440605
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235438039
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235435925
-
由 Guangda Lai 提交于
PiperOrigin-RevId: 235418348
-
- 24 2月, 2019 4 次提交
-
-
由 Dan Moldovan 提交于
PiperOrigin-RevId: 235411715
-
由 TensorFlower Gardener 提交于
PiperOrigin-RevId: 235409829
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235395188
-
由 Justin Lebar 提交于
PiperOrigin-RevId: 235369844
-
- 23 2月, 2019 17 次提交
-
-
由 Lasse Espeholt 提交于
PiperOrigin-RevId: 235340188
-
由 Thomas O'Malley 提交于
PiperOrigin-RevId: 235323179
-
由 Martin Wicke 提交于
PiperOrigin-RevId: 235320635
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235320364
-
由 Lu Wang 提交于
PiperOrigin-RevId: 235309643
-
由 TensorFlower Gardener 提交于
PiperOrigin-RevId: 235309152
-
由 Smit Hinsu 提交于
No functional changes. PiperOrigin-RevId: 235303926
-
由 Guangda Lai 提交于
all node converters as validators as well. This also fix a bug where it says Floor is supported (since it's in the op list in IsTensorRTCandidate(), and validator_.ValidateNode() returns OK since no validator was registered for it), but actually it's not supported until TRT 5.1. PiperOrigin-RevId: 235295283
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235294450
-
由 Karim Nosir 提交于
PiperOrigin-RevId: 235294387
-
由 TensorFlower Gardener 提交于
PiperOrigin-RevId: 235288226
-
由 A. Unique TensorFlower 提交于
PiperOrigin-RevId: 235285807
-
由 Justin Lebar 提交于
PiperOrigin-RevId: 235284387
-
由 Haoyu Zhang 提交于
PiperOrigin-RevId: 235282812
-
由 Justin Lebar 提交于
Now mostly covered by exhaustive_op_test. The big missing gap is the trig functions. But to fix these, we need to carefully define how they're supposed to work over complex inputs, and that's a bigger task than I'm ready to take on at the moment. PiperOrigin-RevId: 235281417
-
由 TensorFlower Gardener 提交于
PiperOrigin-RevId: 235281210
-
由 Mark Daoust 提交于
Prefer `tf.submodule.Symbol` to `tf.Symbol`. When the object is a module, then prefer `tf.submodule` over `tf.package.submodule` so that `tf.submodule.Symbol` finds `tf.submodule`. PiperOrigin-RevId: 235278774
-