Questions tagged [pooling]

a container holds ready objects for clients, to reduce initialization time of expensive buffers or resources.

Commonly refers to network or database connection pools, or byte buffer pools.

239 questions
1
vote
2 answers

ValueError: Error when checking target: expected avg_pool to have 4 dimensions, but got array with shape (100, 2)

I try to run this code (binary classification) but still stuck with this error : ValueError: Error when checking target: expected avg_pool to have 4 dimensions, but got array with shape (100, 2) NUM_CLASSES = 2 CHANNELS = 3 IMAGE_RESIZE…
SpEm1822
  • 51
  • 3
  • 8
1
vote
0 answers

What way of object pooling 'bullets' would be more efficient in this case?

Regarding this old video: https://www.youtube.com/watch?time_continue=13&v=9-zDOJllPZ8 In the video they have one global instance of an object pooler that handles the bullets object pool. The guy also says that handling multiple lists is worse than…
KVN
  • 65
  • 5
1
vote
1 answer

unable to set multipleStatements to true in knex node express

I have inherited an node.js app for RESTFUL api, which uses knex pooling to connect to mysql. I have a nned to perform multiple queries in single function (statement), and as I understand, for that I need multipleStatemnt to be set to truu in knex…
Gregor Sotošek
  • 357
  • 1
  • 4
  • 22
1
vote
0 answers

Spring WS connection pooling multiple pools?

I have the following WS configuration: private WebServiceOperations createWs(final String uri) { WebServiceTemplate wst = new WebServiceTemplate(); wst.setDefaultUri(uri); wst.setMarshaller(marshaller()); …
Gábor DANI
  • 2,063
  • 2
  • 22
  • 40
1
vote
0 answers

Strange pooling behavior on Azure SQL database

This question is about very strange pooling behavior on Azure SQL database. Here is the code to execute SQL commands: async Task ExecuteSqlQuery(SqlCommand sqlCommand, Action dataReaderHandler = null) { try { // share…
Anton
  • 48
  • 5
1
vote
1 answer

Spatial Pyramid Pooling - Input Size Error (? - None)

I've been trying to implement the Spatial Pyramid Pooling (https://arxiv.org/abs/1406.4729), but I've been having a problem with the input size. My input has shape (batch_size, None, n_feature_maps) and I have the following…
1
vote
0 answers

Queries on Spring LDAP user authentication with PoolingContextSource

I have few queries on Spring LDAP user authentication. Any custom/predefined way to authenticate a user(both using username and password) by using spring LDAP pooling(Not JNDI pool but PoolingContextSource of Spring LDAP). Pooling supports search…
1
vote
1 answer

not Understanding GlobalMaxPooling1D keras

I am not sure if I understand well the GlobalMaxPooling1D in Keras. I have feature vector of text of uni gram & bi gram & tri and I concatenate them to be in form of [ ? , 3 , 256 ] and then I apply GlobalMaxPooling1D. So, does GlobalMaxPooling1D…
Soad Saleh
  • 83
  • 7
1
vote
1 answer

Pooling with JavaScript classes

When writing JavaScript-based games I typically use object pooling to reduce GC work. This typically involves applying constructors to existing objects, e.g.: constructor.apply(object, arguments); This way, constructor functions can be used both…
scg
  • 449
  • 1
  • 3
  • 11
1
vote
0 answers

In Keras, How can i get 4D output from LSTM

I want to implement a model with LSTM and one pooling layer which wants 4D input. However LSTM's output is 3D. How can i implement ? I want model LSTM ( units:32, input_shape(batch_size,1,200),return_sequences:true) LSTM ( units:32,…
1
vote
2 answers

who profits more from pooling? managed / unmanaged?

Having two similar applications: one managed and the other unmanged. Both utilizing a heavy allocation pattern for large objects. I.e. they are requesting a lot of those objects in (long running) loop and both releasing those objects pretty right…
user492238
  • 4,094
  • 1
  • 20
  • 26
1
vote
1 answer

LSTM Followed by Mean Pooling (TensorFlow)

I am aware that there is a similar topic at LSTM Followed by Mean Pooling, but that is about Keras and I work in pure TensorFlow. I have an LSTM network where the recurrence is handled by: outputs, final_state = tf.nn.dynamic_rnn(cell, …
1
vote
1 answer

When pooling data subjects, OR operator doesn't seem to work

My problem is as follows: I have a dataset with 3 types of variables (say, A, B and C) for every subject. For each variable specifically, I can pool patients into having, say, high, mid and low values of the variable. Now I want to pool subjects…
1
vote
1 answer

every request from a django app increasing mysql number of connections

I have a project built using django 1.11 and i am sending a request from my admin view and it is creating a new DB connection on every request(using django development server, runserver). But the same thing using gunicorn as server does not increase…
mukul
  • 111
  • 8
1
vote
1 answer

How does ADO.NET Connection Pooling work with .ASMX Web Services?

I've created an old-style .ASMX web service and would like to know how the built-in ADO.NET connection pooling works with it. The web service is not using a singleton pattern, so it is instantiated anew with every request. My question is will…
Brendan Hannemann
  • 2,084
  • 1
  • 18
  • 33