2921abbed5ce04a97c9704e8e607063d8948057d,pymc3/distributions/distribution.py,,draw_value,#Any#Any#Any#,140
Before Change
else:
return param.tag.test_value
else:
return function([], param,
givens=givens,
rebuild_strict=False,
on_unused_input="ignore",
allow_input_downcast=True)()
else:
return param
def get_sample_shape(shape, *args, **kwargs):
After Change
else:
value = param.tag.test_value
else:
value = function([], param,
givens=givens,
rebuild_strict=True,
on_unused_input="ignore",
allow_input_downcast=True)()
else:
value = param
// Sanitising values may be necessary.
if hasattr(param, "dtype"):
value = np.atleast_1d(value).astype(param.dtype)
if hasattr(param, "shape"):
try:
shape = param.shape.tag.test_value
except:
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 2921abbed5ce04a97c9704e8e607063d8948057d
Time: 2015-09-08
Author: mwibrow@gmail.com
File Name: pymc3/distributions/distribution.py
Class Name:
Method Name: draw_value
Project Name: keras-team/keras
Commit Name: d9fae78e554db4bb4d4590564ce49b3d70e64d0e
Time: 2019-08-28
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name: Function
Method Name: __call__
Project Name: pymanopt/pymanopt
Commit Name: c8cd8fdace495b67de051193232a1d824b663c5b
Time: 2016-02-23
Author: jamiehntownsend@gmail.com
File Name: pymanopt/tools/autodiff/_theano.py
Class Name: TheanoBackend
Method Name: compile_function
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 8b7ef49410b802df2514d4b6d9e47188be98ad6b
Time: 2016-08-11
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/keras_input_lib.py
Class Name:
Method Name: get_activ_fn_for_layer
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: bb802da123e6494c7dc8e2c4477a2b54fab34643
Time: 2016-08-25
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/lasagne_input_lib.py
Class Name:
Method Name: get_activ_fn_for_layer