![]() ![]() The detected shape was (4,) + inhomogeneous part. Hot Network Questions Paranormal Activity Android Issues were found when checking AAR metadata: re:core:1.12.0-alpha01 and re:core-ktx:1.12.0-alpha01. The requested array has an inhomogeneous shape after 1 dimensions. Setting an array element with a sequence.The requested array has an inhomogeneous shape after1dimensions.The detected shapewas(18,)+inhomogeneouspart. ValueError: setting an array element with a sequence. Shape_value = np.asarray(shape, dtype=np.int64) Examples Causing Valueerror: Setting An Array Element With A Sequence 1. Self.replace_reshape_node(shape, reshape_node, concat_node)įile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/models/gpt2/././fusion_reshape.py", line 23, in replace_reshape_node Self.fuse(node, input_name_to_nodes, output_name_to_node)įile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/models/gpt2/././fusion_reshape.py", line 173, in fuse The requested array has an inhomogeneous shape after 1 dimensions. Optimizer = optimize_by_fusion(model, model_type, num_heads, hidden_size, optimization_options)įile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/optimizer.py", line 154, in optimize_by_fusionįile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/models/gpt2/././onnx_model_bert.py", line 378, in optimizeįile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/models/gpt2/././onnx_model_bert.py", line 89, in fuse_reshapeįile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/models/gpt2/././fusion_base.py", line 46, in apply ValueError: setting an array element with a sequence. One of the main causes for the ValueError: setting array element with a sequence is when you’re trying to insert arrays of different dimensions into a NumPy array. ![]() ![]() Optimizer.optimize(optimization_config=optimization_config, save_dir=tmp_dir)įile "/home/fxmarty/hf_internship/optimum/optimum/onnxruntime/optimization.py", line 146, in optimizeįile "/home/fxmarty/anaconda3/envs/hf-inf/lib/python3.9/site-packages/onnxruntime/transformers/optimizer.py", line 255, in optimize_model ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |