Questions tagged [stateful]

A stateful app is one that stores information about what has happened or changed since it started running

A stateful app is one that stores information about what has happened or changed since it started running. Any public info about what "mode" it is in, or how many records is has processed, or whatever, makes it stateful.

489 questions
5
votes
1 answer

How to create a custom layer in Keras with 'stateful' variables/tensors?

I would like to ask you some help for creating my custom layer. What I am trying to do is actually quite simple: generating an output layer with 'stateful' variables, i.e. tensors whose value is updated at each batch. In order to make everything…
5
votes
1 answer

Nifi 1.10.0-Using the new Stateless NiFi execution engine and command line

Got this feature,and there are two execution engine now---STATELESS AND STATEFUL,but i am not sure which scenarios do they fit separately? When i wanna update one or more parameter conveniently,use steteless execution engine and command line?If i…
Cong
  • 479
  • 4
  • 16
5
votes
1 answer

stateful and stateless methods of stream

In the interface Stream : The intermediate operations are classifiable in stateful and stateless. They impact the result of a parallel Stream. Only two terminal operations are nondeterministic methods: findAny() and forEach(Consumer). They impact…
Sam
  • 536
  • 5
  • 23
5
votes
2 answers

Flutter Stateful Widget State not Initializing

I'm making a command and control application using Flutter, and have come across an odd problem. The main status page of the app shows a list of stateful widgets, which each own a WebSocket connection that streams state data from a connected robotic…
user8067251
  • 61
  • 1
  • 7
5
votes
1 answer

LSTM state within a batch

I'm currently working on a Keras tutorial for recurrent network training and I'm having trouble understanding the Stateful LSTM concept. To keep things as simple as possible, the sequences have the same length seq_length. As far as I get it, the…
H.M.
  • 261
  • 3
  • 8
5
votes
3 answers

Why shouldn't I use a JSF SessionScoped bean for logic?

I'm developing a java EE web app using JSF with a shopping cart style process, so I want to collect user input over a number of pages and then do something with it. I was thinking to use an EJB 3 stateful session bean for this, but my research leads…
PiersyP
  • 5,003
  • 2
  • 33
  • 35
5
votes
4 answers

Stateful tail (only shows the new lines from the last execution)

I want to be able to see how many lines were added to a file since the last quering without reading the whole file again. Something like : ptail my_file | fgrep "[ERROR]" | wc -l A solution in simple Perl would be prefered, since I don't have an…
Steve Schnepp
  • 4,620
  • 5
  • 39
  • 54
5
votes
3 answers

Link to last version of stateful page

I have a number of stateful pages with some state for each page. For example each page has a form that was submitted. How can I organize a menu with links to last versions of these stateful pages? Should I store anywhere (may be in the session)…
Yuriy Yudin
  • 123
  • 1
  • 3
5
votes
1 answer

JAX-WS: stateful WS fails in a standalone process

I have a stateful web service deployed onto Tomcat. It consists of factory service and main API service, and works just fine. Factory service returns a W3CEndpointReference to main API instance, and client uses the session. Now, I'm trying to run…
Vladimir Dyuzhev
  • 18,130
  • 10
  • 48
  • 62
4
votes
2 answers

Is it possible to make a contextually-sensitive python context manager that saves, modifies and restores state?

I have a pair of python functions that currently flip a global variable between two values. I would like to turn them into context managers so I can use them as with blocks, setting the variable inside the block, but restoring it after. Here's the…
David Eyk
  • 12,171
  • 11
  • 63
  • 103
4
votes
1 answer

How to recreate a single widget in flutter and make it lose the state?

I have a widget that I want to recreate the state for what can I do to achieve this? I heard there is a way by UniqueKeys but I have no idea about them well because I'm a beginner (don't worry I have searched) What I tried so far was to pop the…
4
votes
1 answer

Azure App Service - ARR Affinity - Auto-scaling - Stateful application

I would like to get details on the behavior of the app with ARR Affinity enabled and autoscaling? Let's say I deploy a stateful ASP.NET web app on Azure Web App. Therefore I enable ARR Affinity. I configure autoscaling as well. What happens if ever…
Bertrand Pons
  • 257
  • 2
  • 18
4
votes
3 answers

Is there any way to use the EarlyStopping Keras function when I apply a stateful LSTM and I reset the states?

I am using a stateful LSTM regression model and I would like to apply the EarlyStopping function. In stateful LSTMs as I was reading the states should be reset at each epoch. However, I noticed that when I was resetting the states the EarlyStopping…
4
votes
1 answer

Pass parameter to initState

Look at this code - widget to fetch data and display on list: class _MyEventsFragmentState extends State { var events; @override initState(){ super.initState(); events = fetchEvents(true); } @override Widget…
user1209216
  • 7,404
  • 12
  • 60
  • 123
4
votes
0 answers

Why it is required to reset the state in Stateful LSTM?

I am presuming that state is the c value that one node carries forward to another node in the LSTM model. If data is properly normalized then the state must be generated out of proper regression and should be helpful in the next batch too.…
sn.anurag
  • 617
  • 7
  • 14