- 05 4月, 2017 1 次提交
-
-
由 notoraptor 提交于
- class Wrap -> Params - class Wrapper -> ParamsType - file wrapper.py -> params_type.py - file test_wrapper.py -> test_params_type.py Protect Wrap private fields and rewrite Wrap __repr__().
-
- 04 4月, 2017 1 次提交
-
-
由 notoraptor 提交于
Optimize Wrap.__hash__.
-
- 28 3月, 2017 34 次提交
-
-
由 notoraptor 提交于
Replace locals() by manual dicts to prevent any missing variables in formatted strings in `wrapper.py` and `test_wrapper.py`.
-
由 notoraptor 提交于
Update default get_op_params() to take account of it.
-
由 notoraptor 提交于
so that it looks for an implemented version of `get_params()`, and nothing else.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
Update Wrapper doc.
-
由 notoraptor 提交于
cleanup() is always called when wrapper is destroyed. Update computation of C code cache version for Wrapper. I think it should depend on C code cache version of wrapped types.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
-
由 notoraptor 提交于
-
由 notoraptor 提交于
-
由 notoraptor 提交于
Now, if `params_type` is a Wrapper, it will generate a default macro `APPLY_SPECIFIC_WRAPPER`, and a macro `DTYPE_PARAM_key` for every key in the Wrapper for which associated type implements method `c_element_type()`.
-
由 notoraptor 提交于
Implement this new method into: - Scalar - TensorType - GpuArrayType
-
由 notoraptor 提交于
-
由 notoraptor 提交于
-
由 notoraptor 提交于
Simplify values_eq and values_eq_approx. Then, update test for values_eq_approx. Fix some exception type. Remove useless comment.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
Fix test (int32 vs int64 error). Fix Travis FAST_COMPILE error (add `perform()` implementation to COp test)
-
由 notoraptor 提交于
Rewrite `Wrap` so that it depends on a Wrapper. Simplify code.
-
由 notoraptor 提交于
This list tries to be as exhaustive as possible, and contains at least all basic keywords.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
This function expects policy to be lists (or tuples) of functions, but individual functions are sometimes passed directly.
-
由 notoraptor 提交于
- test `!=` operator on Wrap and Wrapper - remove useless condition in `Wrap.__eq__`.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
Modify `Wrapper.value_eq` and `Wrapper.value_eq_approx`. Fix typos, rename variables, clarify doc strings and comments.
-
由 notoraptor 提交于
Let exceptions raise freely (for better debugging).
-
由 notoraptor 提交于
`op.get_params()` exists. Now it checks if `ops.params_type` exists. Add a default implementation of `Op.get_params()` which tris to detect and filter params from the op if `op.params_type` is defined with a Wrapper, else it will raise a `MethodNotDefined` exception. Rewrite test_wrapper. The tested op now uses 3 theano types: TensorType, Scalar and Generic. Test methods are also renamed and rewritten to be more readable. Simplify `Wrap.__hash__`, as `Wrap` is now considered as internal. The ndarrays are now hashed first with `theano.tensor.utils.hash_from_ndarray`.
-
由 notoraptor 提交于
Fix Python3 compat. Add comment to explain the code. Update unit tests.
-
由 notoraptor 提交于
Add new tests. Fix typos.
-
由 notoraptor 提交于
-
由 notoraptor 提交于
-
由 Frédéric Bastien 提交于
Clean up
-
由 Pascal Lamblin 提交于
Add conv2d transpose2doc
-
由 Reyhane Askari 提交于
#5742 Removed theano/sandbox/linalg/ops.py and theano/sandbox/linalg/tests/test_linalg.py from flake8 whitelist
-
由 Frédéric Bastien 提交于
Open tempfile in mode 'w' to prevent TypeError
-
- 27 3月, 2017 3 次提交
-
-
由 Chiheb Trabelsi 提交于
-
由 Chiheb Trabelsi 提交于
.. autofunction:: theano.tensor.nnet.conv2d_transpose added in order to generate docuentation for conv2d transpose.
-
由 Jayanth Koushik 提交于
For printing compilation errors, a NamedTemporaryFile object is opened in the default mode ('w+b'), and strings are written to it. This is not an issue in Python 2, but in Python 3, strings cannot be implicitly converted to bytes so a TypeError occurs on line 2310 (previously 2309). This commit explicitly opens the NamedTemporaryFile in mode 'w'.
-
- 25 3月, 2017 1 次提交
-
-
由 Frédéric Bastien 提交于
Update Windows installation documentation for Anaconda.
-