Skip to content

Commit

Permalink
[Φ] Add *min, *max, *prod convenience imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Holl committed Dec 4, 2024
1 parent 2394456 commit 24d9322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phi/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@

# Functions
from phiml.math import (
wrap, tensor, vec, zeros, zeros_like, ones, ones_like, linspace, rand, randn, # Tensor creation
wrap, tensor, vec, zeros, zeros_like, ones, ones_like, linspace, rand, randn, arange, # Tensor creation
shape, spatial, channel, batch, instance, dual, primal,
non_spatial, non_channel, non_batch, non_instance, non_dual, non_primal, # Shape functions (magic)
unstack, stack, concat, tcat, expand, rename_dims, pack_dims, unpack_dim, flatten, cast, # Magic Ops
b2i, c2b, c2d, i2b, s2b, si2d, d2i, d2s, map_s2b, map_i2b, map_c2b, map_d2b, map_d2c, map_c2d, # dim type conversions
dsum, isum, ssum, csum, mean, dmean, imean, smean, cmean, median, sign, round, ceil, floor, sqrt, exp, erf, log, log2, log10, sigmoid, soft_plus,
dprod, sprod, iprod, cprod, dmin, smin, imin, cmin, finite_min, dmax, smax, imax, cmax, finite_max,

sin, cos, tan, sinh, cosh, tanh, arcsin, arccos, arctan, arcsinh, arccosh, arctanh, log_gamma, factorial, incomplete_gamma,
scatter, gather, where, nonzero,
dot, convolve, maximum, minimum, clip, # vector math
Expand Down

0 comments on commit 24d9322

Please sign in to comment.