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
0
votes
1 answer

connection pooling struts2+hibernate+mysql+tomcat+eclipse

I have an ongoing difficulty grasping the technical implementation details of connection pooling. I have read quite a few of related articles such as this one and this one, but still not 100% clear. Is connection pooling tied to tomcat, mysql, or…
denchr
  • 4,142
  • 13
  • 48
  • 51
0
votes
1 answer

Expired sessions in GenericObjectPool

I am using child object of org.apache.commons.pool.impl.GenericObjectPool for providing connections to web services (child of org.apache.axis2.client.Stub). How to setup the pool, so connections that have expired sessions will be automatically…
Martin
  • 149
  • 1
  • 2
  • 7
0
votes
0 answers

Changing pooling method in pre-trained models

I would like to obtain sentence embeddings for the texts in my dataset. To achieve this, I am utilizing the Sentence Transformer model called "bert-base-nli-mean-tokens." During the training of this pre-trained model, the developers used mean…
yasinor
  • 3
  • 3
0
votes
2 answers

How does average pooling function work in TensorFlow?

Let us assume a tensor like this: x = tf.constant([[1., 2., 3.], [4., 5., 6.], [7., 8., 9.]]) To apply the average pooling function, I will do this: x = tf.reshape(x, [1, 3, 3, 1]) avg_pool_2d =…
0
votes
0 answers

Patch Merging and Pooling layer difference

I want to ask what the difference between Patch Merging in Swin Transformer and Pooling layer (e.x. Max Pooling) in CNNs. Why do they use Patch Merging instead of Pooling layer. I understand that Patch Merging will reduce the spatial dimension in…
0
votes
0 answers

Custom layer with tf.extract_image_patches extremely slow

I'm new to tensorflow. I'm trying to implement a custom pooling layer, using owa operators (https://github.com/jiforcen/ordered-weighted-pooling). For that I'm using tf.extract_image_patches, but this operation is extremely slow when the input data…
0
votes
0 answers

Custom Pooling (TypeError: unsupported operand type(s) for /: 'NoneType' and 'int')

I have been working on custom pooling for a long time, but I have not been successful. The attached codes seem to work, but not when I add a second pooling layer. Also, when I run the same code with spyder, I get an error. I couldn't find any code…
merve
  • 9
  • 4
0
votes
1 answer

Pooling configuration sizing for the Mule 4 Database Connnector

I want to do connection pooling in Database connector in Mule 4, but I'm not able to figure it out how to configure max and min pool size? I am sending sending data which is of dynamic size. Hence what should an ideal size of max and min pool and…
0
votes
1 answer

Delphi 7 ADO connection pooling outside of IIS

We have a Delphi 7 application that runs as an ISAPI extension in IIS6. The code use ADO to connect to a MS SQL 2000 database and performs many reads on the database (no writes). If I watch the audit login and logout events in SQL profiler I can…
James Cadd
  • 12,136
  • 30
  • 85
  • 134
0
votes
1 answer

Implement pooling with rxjs - wait for correct response and do it with timeout and delay

I have to implement pooling in my case, but I have some problem with correct implement all my condition. So first, I have to call to one endpoint, and after it return success, call another endpoint until it returns correct response (It always return…
emka26
  • 433
  • 1
  • 11
  • 28
0
votes
0 answers

TypeError('Keyword argument not understood:', kwarg) TypeError: ('Keyword argument not understood:', 'inputs')

The following code is for fake news detection with a dEFEND model using Tensorflow and Keras. For some reason, I keep getting an error. This is a TypeError with parameter 'inputs'. I don't understand why this error is being raised. Here is my…
0
votes
1 answer

indices in MaxPool2d in pytorch

I am studying the documentation at https://pytorch.org/docs/stable/generated/torch.nn.MaxPool2d.html. In the parameters section, it states return_indices – if True, will return the max indices along with the outputs. Useful for torch.nn.MaxUnpool2d…
user5965026
  • 465
  • 5
  • 16
0
votes
0 answers

node.js mssql UPDATE Statements take > 1 minute to execute

At the moment I am deploying a node.js application with IIS reverse proxy at a test server. I am working with mssql package to connect to the SQL Server 2014. For testing on my local machine everything worked fine (SQL Server 2019), but now on the…
lukinoe
  • 21
  • 4
0
votes
2 answers

How to convert (1,64,224,224) --> (1,64) using adaptive average pooling(Pytorch)?

Is there any way in Pytorch to reduce dimensions of tensor in model?
0
votes
0 answers

Creating a Cropped bitmap without creating a new bitmap

I need to figure out a way to get a bitmap cropped without creating another bitmap that is already present. I have two bitmaps int width = 50; int height = 50; //Bitmap A bitmapA = Bitmap.createBitmap(width, height,…
Jack Smother
  • 207
  • 1
  • 8
  • 32