mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-22 23:35:19 +08:00
Silence some pytype errors.
PiperOrigin-RevId: 408459881
This commit is contained in:
committed by
Saran Tunyasuvunakool
parent
86307bf254
commit
9b751b7d20
@@ -45,7 +45,7 @@ def build_mlp(
|
||||
hidden_size: int, num_hidden_layers: int, output_size: int) -> snt.Module:
|
||||
"""Builds an MLP."""
|
||||
return snt.nets.MLP(
|
||||
output_sizes=[hidden_size] * num_hidden_layers + [output_size])
|
||||
output_sizes=[hidden_size] * num_hidden_layers + [output_size]) # pytype: disable=bad-return-type # gen-stub-imports
|
||||
|
||||
|
||||
class EncodeProcessDecode(snt.AbstractModule):
|
||||
|
||||
@@ -58,7 +58,7 @@ class ModUcf101(tfds.video.Ucf101):
|
||||
features = tfds.features.FeaturesDict({
|
||||
'video': tfds.features.Video(video_shape,
|
||||
ffmpeg_extra_args=ffmpeg_extra_args,
|
||||
encoding_format='jpeg'),
|
||||
encoding_format='jpeg'), # pytype: disable=wrong-arg-types # gen-stub-imports
|
||||
'label': tfds.features.ClassLabel(names_file=labels_names_file),
|
||||
})
|
||||
return tfds.core.DatasetInfo(
|
||||
|
||||
Reference in New Issue
Block a user