You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm solving a 2D Euler equation around a cylinder. I'm implementing the free slip condition using OperatorBC as done in #1046 but using exactly that implementation i have many errors and i'm arriving to this one
# Option 3 free-slipdefnormal_vel(inputs, outputs, X):
# Extract velocity componentsvelocity=outputs[:, 0:2]
# Ensure velocity is a TensorFlow tensorvelocity=tf.convert_to_tensor(velocity, dtype=tf.float32)
# Get boundary normalsnormal=cylinder.boundary_normal(X)
# Ensure normal is a TensorFlow tensornormal=tf.convert_to_tensor(normal, dtype=tf.float32)
# Element-wise multiplicationmultiplied=tf.multiply(velocity, normal)
# Sum along axis 1 and keep dimensionsres=tf.reduce_sum(multiplied, axis=1, keepdims=True)
returnres# Define the boundary conditionbc_c1=dde.icbc.OperatorBC(spatial_domain, normal_vel, boundary_cylinder)
Thisgivesmethiserrorinmodel.trainTrainingmodel...
---------------------------------------------------------------------------InvalidArgumentErrorTraceback (mostrecentcalllast)
[/usr/local/lib/python3.10/dist-packages/tensorflow/python/client/session.py](https://localhost:8080/#) in _do_call(self, fn, *args)1401try:
->1402returnfn(*args)
1403excepterrors.OpErrorase:
10framesInvalidArgumentError: 2rooterror(s) found.
(0) INVALID_ARGUMENT: Incompatibleshapes: [13539,2] vs. [2639,2]
[[{{nodeMul_124}}]]
tf2xlaconversionfailedwhileconvertingcluster_1[_XlaCompiledKernel=true,_XlaHasReferenceVars=true,_XlaNumConstantArgs=0,_XlaNumResourceArgs=0]. RunwithTF_DUMP_GRAPH_PREFIX=/path/to/dump/dirand--vmodule=xla_compiler=2toobtainadumpofthecompiledfunctions.
[[cluster_1_1/xla_compile]]
[[cluster_1_1/merge_oidx_1/_9]]
(1) INVALID_ARGUMENT: Incompatibleshapes: [13539,2] vs. [2639,2]
[[{{nodeMul_124}}]]
tf2xlaconversionfailedwhileconvertingcluster_1[_XlaCompiledKernel=true,_XlaHasReferenceVars=true,_XlaNumConstantArgs=0,_XlaNumResourceArgs=0]. RunwithTF_DUMP_GRAPH_PREFIX=/path/to/dump/dirand--vmodule=xla_compiler=2toobtainadumpofthecompiledfunctions.
[[cluster_1_1/xla_compile]]
0successfuloperations.
0derivederrorsignored.
Duringhandlingoftheaboveexception, anotherexceptionoccurred:
InvalidArgumentErrorTraceback (mostrecentcalllast)
[/usr/local/lib/python3.10/dist-packages/tensorflow/python/client/session.py](https://localhost:8080/#) in _do_call(self, fn, *args)1419'\nsession_config.graph_options.rewrite_options.'1420'disable_meta_optimizer = True')
->1421raisetype(e)(node_def, op, message) # pylint: disable=no-value-for-parameter14221423def_extend_graph(self):
InvalidArgumentError: Graphexecutionerror:
The text was updated successfully, but these errors were encountered:
I'm solving a 2D Euler equation around a cylinder. I'm implementing the free slip condition using OperatorBC as done in #1046 but using exactly that implementation i have many errors and i'm arriving to this one
The text was updated successfully, but these errors were encountered: