Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arraycontext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
arraycontext
Commits
9542cce7
Commit
9542cce7
authored
2 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add folds in arraycontext.impl.pytato
parent
4305d758
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arraycontext/impl/pytato/__init__.py
+15
-0
15 additions, 0 deletions
arraycontext/impl/pytato/__init__.py
with
15 additions
and
0 deletions
arraycontext/impl/pytato/__init__.py
+
15
−
0
View file @
9542cce7
...
...
@@ -53,6 +53,8 @@ if TYPE_CHECKING:
import
pytato
# {{{ _BasePytatoArrayContext
class
_BasePytatoArrayContext
(
ArrayContext
,
abc
.
ABC
):
"""
An abstract :class:`ArrayContext` that uses :mod:`pytato` data types to
...
...
@@ -122,6 +124,10 @@ class _BasePytatoArrayContext(ArrayContext, abc.ABC):
def
permits_advanced_indexing
(
self
):
return
True
# }}}
# {{{ PytatoPyOpenCLArrayContext
class
PytatoPyOpenCLArrayContext
(
_BasePytatoArrayContext
):
"""
...
...
@@ -362,6 +368,10 @@ class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext):
for
name
,
arg
in
zip
(
arg_names
,
args
)
])
# }}}
# {{{ PytatoJAXArrayContext
class
PytatoJAXArrayContext
(
_BasePytatoArrayContext
):
"""
...
...
@@ -498,3 +508,8 @@ class PytatoJAXArrayContext(_BasePytatoArrayContext):
preprocess_arg
(
name
,
arg
)
for
name
,
arg
in
zip
(
arg_names
,
args
)
])
# }}}
# vim: foldmethod=marker
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment