Questions tagged [bidirectional]

"Bidirectional" refers to any process or structure that works in two directions. Use the tag `bidi` for bidirectional text instead of this tag.

"Bidirectional" is a general concept and can have a lot of meanings:

  • bidirectional text, see
  • bidirectional associations of data
  • bidirectional synchronization
  • bidirectional mapping
  • bidirectional communication
  • bidirectional search algorithms

See also: https://en.wikipedia.org/wiki/Bidirectional

493 questions
2
votes
0 answers

Python bidirectional comms over bluetooth socket between 2 RPis (master / slave)

I'm trying to create bidirectional comms over a bluetooth socket between 2 RPis. I need to run the main program on the master while waiting for the connection then have the ability to push a message from either device at any time and interrupt main…
JCBman
  • 21
  • 2
2
votes
0 answers

Bidirectional range slider with colors for both directions

totally newbie with css, html and js scripting here. I'm basically googling for the things I want to implement and modify existing code. I'm building a web interface to control a couple of motors and I'm using range sliders to control their…
Jimakos
  • 151
  • 3
2
votes
2 answers

java mapstruct 1.3.1 ignore property in a list for bi-directional DTO mapping

I'm struggling with cycle dependency problem with MapStruct. I keep having a StackOverFlow error due to circular dependencies. To avoid it, I just need to exclude a property of a List. I found this :…
John Student
  • 298
  • 1
  • 6
  • 18
2
votes
1 answer

Why CuDNNLSTM has more parameres than LSTM in keras?

I have been trying to compute number of parameters in LSTM cell in Keras. I created two models one with LSTM and other with CuDNNLSTM. Partial summary of models are as CuDNNLSTM Model: …
princethewinner
  • 51
  • 1
  • 2
  • 5
2
votes
0 answers

Hibernate OneToMany Relationship on save does an insert and then a update, how to avoid the redundant update?

I am trying to resolve redundant Update statements that are getting executed while saving a OneToMany relationship. I know this question has been asked before, but I didnt get it to work. I've tried all the suggestions but no luck. Please take a…
kumarji.alluri
  • 197
  • 1
  • 3
  • 13
2
votes
1 answer

Grpc async bidirectional client using c++

I am using bidirectional grpc between my client and server. I would like to implement async bidi on both client and server i.e., client opens a stream and starts sending arbitrary messages to server, while another thread continues receiving server…
Neeraj Jain
  • 31
  • 1
  • 6
2
votes
1 answer

How to receive the complete path from Networkx shortest path algorithms

I am using floyd_warshall_predecessor_and_distance function of Networkx in Python 3 to find the shortest path on a bidirected graph. The function returns the shortest distance between given two nodes (if there exist an edge) and a portion of the…
tcokyasar
  • 582
  • 1
  • 9
  • 26
2
votes
1 answer

Attention layer output shape issue

I have been using BiLSTMs to classify each word in sentences and my input is n_sentences, max_sequence_length, classes. Recently, I have been trying to use this attention layer:…
D. Clem
  • 85
  • 1
  • 6
2
votes
2 answers

Mapping objects with bi-directional relations with Mapstruct

I wonder if and how Mapstruct could help with mapping ojects with bi-directional relations (in my case one to many): public class A{ private Set listB; } public class B{ private A a; } Mapping from/to an entity yields a…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
2
votes
0 answers

InvalidArgumentError: Incompatible shapes: [1920] vs. [32,60] [[{{node metrics_3/acc/Equal}}]]

I am into training a Bi-lstm sequence tagger model and getting the following error with this model parameters: model = Sequential() model.add(Bidirectional(LSTM(units=512, return_sequences=True, recurrent_dropout=0.2,…
ptamas90
  • 147
  • 3
  • 9
2
votes
1 answer

EclipseLink/JPA2 ManyToOne bidirectional cascade persist issue

This is similar to How to cascade persist using JPA/EclipseLink I have to entities like so. One is RoomEntity that has a one to many bi-directional relationship with ComputerEntity. eg. each room has 0..n computers. @Entity public class…
NBW
  • 1,467
  • 2
  • 18
  • 27
2
votes
0 answers

Implementing a 8-bit bidirectional shift register in VHDL

I'm trying to implement a 8-bit bidirectional shift register in VHDl but it's not working properly, because when I am simulating my project with the testbench, I end up with this I'm struggling with the ENABLE of each flip-flop that has to be…
Edaj Mai
  • 51
  • 4
2
votes
2 answers

Spring JPA, Hibernate fetch PK or Ids only from other entities

I have three entities as below: Parent: @Setter @Getter @Entity public class Parent { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String parentName; @OneToMany(mappedBy = "parent", cascade =…
2
votes
0 answers

Embed Unity game within ReactNative (handling bidirectional communication)

I am creating a multi-mobile (iOS/Android) app with React Native. The app needs to embed & launch a Unity game. It will need to send information to the game, and also receive information from the game. A function passing a JSON string would be…
P i
  • 29,020
  • 36
  • 159
  • 267
2
votes
0 answers

Bidirectional Unicode Text in Python

I need to create a table in reportlab with text in RTL languages like Arabic and Hebrew as well as LTR languages such as English. Following to this post, I'm adding the Unicode Character 'RIGHT-TO-LEFT EMBEDDING' (U+202B) at the beginning of each…
Kemeia
  • 826
  • 2
  • 9
  • 24