24@contextlib.contextmanager
26 """Silence a known third-party warning and raise if it stops firing.
28 Notifies us to drop the workaround once the upstream library is fixed.
41 f
"Expected {category.__name__} containing {message!r} was not "
42 "emitted. This tutorial's workaround can probably be removed."
50input = Input(shape=(4,), batch_size=2)
52x = Activation(
"relu")(x)
53x =
Dense(16, activation=
"relu")(x)
54x =
Dense(8, activation=
"relu")(x)
57model =
Model(inputs=input, outputs=output)
64model.fit(x_train, y_train, epochs=3, batch_size=2)
70 ctx =
expect_warning(DeprecationWarning,
"__array__ implementation doesn't accept a copy keyword")
91print(
"\n**************************************************")
92print(
" Generated code")
93print(
"**************************************************\n")
95print(
"**************************************************\n\n\n")
114print(
"Inference output:", y)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.