4e6f863acd500dc02e7c2a8e5a01566ac58930d9,sonnet/python/modules/conv.py,CausalConv1D,__init__,#CausalConv1D#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1357
Before Change
"{}".format(data_format, SUPPORTED_1D_DATA_FORMATS))
if padding != VALID:
raise base.NotSupportedError(
"Causal padding requires padding argument to be VALID."
"Got: {}".format(padding))
super(CausalConv1D, self).__init__(
output_channels=output_channels, kernel_shape=kernel_shape,
stride=stride, rate=rate, padding=padding, use_bias=use_bias,
After Change
if padding != CAUSAL:
// This used to be required to be VALID, which is now rather ambiguous.
// Supporting VALID for now but with a warning:
util.deprecation_warning(
"You specified a non-casual padding type for CausalConv1D, this has "
"been ignored and you will get CAUSAL padding. Note CausalConv1D is "
"deprecated, please switch to Conv1D with padding=CAUSAL.")
super(CausalConv1D, self).__init__(
output_channels=output_channels, kernel_shape=kernel_shape,
stride=stride, rate=rate, padding=CAUSAL, use_bias=use_bias,
initializers=initializers, partitioners=partitioners,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: deepmind/sonnet
Commit Name: 4e6f863acd500dc02e7c2a8e5a01566ac58930d9
Time: 2018-11-20
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: CausalConv1D
Method Name: __init__
Project Name: ray-project/ray
Commit Name: 2e3655e8a9b1e37fa6e29f11db02a6b53cfb5928
Time: 2021-01-19
Author: sven@anyscale.io
File Name: rllib/agents/a3c/a3c_tf_policy.py
Class Name:
Method Name: postprocess_advantages
Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/__init__.py
Class Name:
Method Name: load