Skip to content

Commit

Permalink
Add stack for tensorflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburbulla committed Jun 12, 2023
1 parent 85abdef commit 43d755c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deepxde/backend/tensorflow/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def to_numpy(input_tensor):
return input_tensor.numpy()


def stack(values, axis):
return tf.stack(values, axis)


def elu(x):
return tf.nn.elu(x)

Expand Down

0 comments on commit 43d755c

Please sign in to comment.