Skip to content
Snippets Groups Projects
  1. Aug 06, 2024
  2. Aug 02, 2024
    • Matt Smith's avatar
      Add `TransformMapper`/`TransformMapperWithExtraArgs` (#530) · c9d11e49
      Matt Smith authored
      * add clone_for_callee to CopyMapperWithExtraArgs
      
      * add TransformMapper/TransformMapperWithExtraArgs
      
      * make CopyMapper/CopyMapperWithExtraArgs inherit from TransformMapper/TransformMapperWithExtraArgs
      
      * expand on purpose of TransformMapper in docstring
      c9d11e49
  3. Aug 01, 2024
  4. Jul 31, 2024
  5. Jul 30, 2024
    • nkoskelo's avatar
      Remove index to access descr (#528) · 0030ec2e
      nkoskelo authored
      
      * Remove the index_access_descr from Einsum object.
      
      * Ruff corrections.
      
      * Make the index_to_access_descriptor a cached property that will automatically build a dictionary for strings to access descriptor. Note that this may not be the exact same string as what the user passed in pt.einsum, but will be equivalent.
      
      * Add a comment on the new cached property.
      
      * Fixing comments made by ruff.
      
      * Remove the cached property. Add in a warning to users requesting a subscript string.
      
      * Remove duplicated code in generating a einsum string. The numpy code generator returned a string which contained spaces after the punctuation. It now no longer does.
      
      * Numpy code generator seems to be dependent on the spaces after the punctuation. So, I am adding those back in.
      
      * Deprecate the old function get_einsum_subscript_str, in favor of get_einsum_specification. Update the code to use the new function.
      
      * Visualization needed to be updated as well.
      
      * Update pytato/utils.py
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * Update pytato/utils.py
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * Updates target.
      
      * Update the documentation to be more clear.
      
      * Fixed a typo.
      
      * Remove excess assert statement.
      
      * Ensure there is a unique error message for arguments of string type since we are removing that functionality.
      
      ---------
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      0030ec2e
    • Matt Smith's avatar
      More fixes for functions (#503) · a8793a9e
      Matt Smith authored
      * add missing *args, **kwargs in WalkMapper.map_call
      
      * memoize clone_for_callee
      
      * remove default CombineMapper map_call implementation
      
      * don't memoize map_function_definition in cached walk mappers
      
      doesn't make sense, since it doesn't return anything
      
      * support calls in InputGatherer
      
      * make NamedCallResult compatible with attrs cache_hash=True
      
      * enable cache_hash on FunctionDefinition
      
      * enable calls in DirectPredecessorsGetter
      
      * memoize Call creation
      
      * make NamedCallResult.call a property
      
      * remove redundant NamedCallResult.name (already defined in NamedArray)
      
      * memoize NamedCallResult creation
      
      * fix docstring
      
      * remove non-argument placeholder check
      
      now done in arraycontext
      
      * fix equality for FunctionDefinition
      
      * add FIXME
      
      * attempt to fix doc warning
      
      * don't construct NamedCallResult directly
      
      * fix mapper method name in UsersCollector
      
      * add FIXME
      
      * Revert "add FIXME"
      
      This reverts commit 72bf01daf4757c72560c5eaf937377b57ce6b07d.
      
      * Revert "remove non-argument placeholder check"
      
      This reverts commit 73478bc4ac16877f946ce868317d9d1d10fb2ca6.
      
      * add some more missing *args, **kwargs to WalkMapper
      
      * remove some unnecessary *args, **kwargs
      
      * add get_func_def_cache_key to walk mappers to correctly handle function caching when extra arguments are present
      
      * undo memoizing Call creation
      
      * don't use regular dict for function call results
      
      * fix type annotation for function result
      
      * undo memoizing clone_for_callee
      
      doesn't avoid retraversal when the same function is encountered inside the bodies of two different
      functions
      
      * add SizeParamGatherer.map_call
      
      default map_call implementation was removed from CombineMapper, so it needs to be here
      
      * Revert "add get_func_def_cache_key to walk mappers to correctly handle function caching when extra arguments are present"
      
      This reverts commit 45eb68d54d6b0e74776fa9bde8d41c7f798b8c49.
      
      * Revert "don't memoize map_function_definition in cached walk mappers"
      
      This reverts commit c0e70cdc8821ae7b14c31acf38e996cdf6bd5896.
      a8793a9e
  6. Jul 23, 2024
  7. Jul 22, 2024
  8. Jul 19, 2024
  9. Jul 18, 2024
  10. Jul 17, 2024
  11. Jul 16, 2024
  12. Jul 12, 2024
  13. Jul 03, 2024
  14. Jul 01, 2024
  15. Jun 25, 2024
  16. Jun 07, 2024
  17. May 15, 2024
  18. May 09, 2024
  19. Apr 13, 2024
  20. Apr 03, 2024
  21. Apr 01, 2024
    • Matthias Diener's avatar
      Add tag to store array creation traceback (#284) · bee4a507
      Matthias Diener authored
      
      * Add tag to store array creation traceback
      
      * don't make it a unique tag
      
      * adds a common _get_default_tags
      
      * Change back to UniqueTag
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * use _get_default_tags
      
      * store a tupleized StackSummary
      
      * work around mypy
      
      * more line fixes
      
      * use a class for the traceback instead of tuples
      
      * also test to_stacksummary
      
      * flake8
      
      * Add remove_tags_of_type
      
      * test_array_dot_repr: Remove CreatedAt tags before comparing
      
      * only add CreatedAt in debug mode
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * restructure test_created_at
      
      * make _PytatoStackSummary a dataclass
      
      * add __repr__
      
      * fix 2 tests
      
      * illustrate test failure with construct_intestine_graph
      
      * shorten traceback printing
      
      * use separate field for CreatedAt
      
      * fix tests
      
      * fix doctest
      
      * make it a tag again
      
      * use tooltip instead of table row
      
      * force openmpi usage
      
      * check for existing CreatedAt and make it a UniqueTag again
      
      * flake8
      
      * add simple equality test
      
      * lint fixes
      
      * add InfoTag class and filter tags based on it
      
      * fix doc
      
      * another doc fix
      
      * use IgnoredForEqualityTag
      
      * UNDO BEFORE MERGE: use external project branches
      
      * Revert "UNDO BEFORE MERGE: use external project branches"
      
      This reverts commit 71dd791b45cee918d33ac8c4cb8e9a3cf643ec37.
      
      * Revert "use IgnoredForEqualityTag"
      
      This reverts commit cd67d684d1c777bc3efef080031446e033e75f42.
      
      * rename InfoTag -> IgnoredForEqualityTag
      
      * more stringent tests
      
      * undo unnecessary test changes
      
      * Revert "Revert "use IgnoredForEqualityTag""
      
      This reverts commit bfb22ba66d0872c3848a4ab41260f9f82ffa188d.
      
      * simplify condition
      
      * Revert "simplify condition"
      
      This reverts commit 1111b7915e23561161eee132e8d5ccb716b101eb.
      
      * bump pytools version + a few spelling fixes
      
      * remove duplicated self.axes in hash()
      
      * use Taggable{__eq__,__hash__}
      
      * add another test
      
      * add vis test
      
      * make _PytatoFrameSummary, _PytatoStackSummary undocumented
      
      * use Taggable.__hash__ for tags in Array.__hash__
      
      * change dataclass to attrs
      
      * flake8
      
      * Taggable.__eq__
      
      * add Array.tagged()
      
      * restrict to DEBUG_ENABLED
      
      * force DEBUG_ENABLED for test
      
      * work around mypy/attrs issue
      
      * fix for fields
      
      * undo mypy ignores
      
      * rewrite to use a new field in Array, non_equality_tags
      
      * misc fixes
      
      * undo some unecessary changes
      
      * more misc fixes
      
      * copymapper, tests
      
      * explicitly enable/disable traceback
      
      * add hash test
      
      * undo more unnecessary changes
      
      * more lint fixes
      
      * run all examples, fix demo_distributed_node_duplication
      
      * enable CreatedAt for distributed nodes
      
      * add support for make_distributed_send_ref_holder
      
      * add to MPMSMaterializer
      
      * Get precise traceback of array creation (#480)
      
      * rename enable_traceback_tag
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * remove update_persistent_hash
      
      * improve doc of _PytatoFrameSummary, _PytatoStackSummary
      
      * move _Pytato{Frame,Stack}Summary to tags, convert to dataclass
      
      * add AxisPermutation CreatedAt
      
      * fix doc
      
      * make _get_created_at_tag return a frozenset
      
      ---------
      
      Co-authored-by: default avatarKaushik Kulkarni <kaushikcfd@gmail.com>
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      Co-authored-by: default avatarMatt Smith <mjsmith6@illinois.edu>
      bee4a507
  22. Mar 17, 2024
Loading