Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils_autodiff
Commits
ecd4109a
Commit
ecd4109a
authored
Aug 08, 2019
by
Stephan Seitz
Browse files
Add module mapping pystencils_autodiff -> pystencils.autodiff
parent
6a3ad276
Pipeline
#17036
failed with stage
in 1 minute and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pystencils_autodiff/__init__.py
View file @
ecd4109a
import
sys
import
pystencils_autodiff.backends
# NOQA
from
pystencils_autodiff._field_to_tensors
import
(
# NOQA
tf_constant_from_field
,
tf_placeholder_from_field
,
tf_scalar_variable_from_field
,
...
...
@@ -15,3 +17,6 @@ __all__ = ['backends',
"tf_constant_from_field"
,
" tf_placeholder_from_field"
,
"tf_scalar_variable_from_field"
,
" tf_variable_from_field"
,
"torch_tensor_from_field"
]
sys
.
modules
[
'pystencils.autodiff'
]
=
pystencils_autodiff
sys
.
modules
[
'pystencils.autodiff.backends'
]
=
pystencils_autodiff
.
backends
src/pystencils_autodiff/backends/__init__.py
View file @
ecd4109a
"""
Backends for operators to support automatic Differentation
Currently, we can use pystencils' JIT compilation to register
a Torch or a Tensorflow operation or we can compile a static
library to be directly loaded into Torch/Tensorflow.
"""
AVAILABLE_BACKENDS
=
[
'tensorflow'
,
'torch'
,
'tensorflow_cpp'
,
'torch_native'
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment