Re: Passing info to function used in re.sub

2023-09-05 Thread Jan Erik Moström via Python-list
On 3 Sep 2023, at 18:10, Jan Erik Moström via Python-list wrote:

> I'm looking for some advice for how to write this in a clean way

Thanks for all the suggestion, I realize that I haven't written Python code in 
a while. I should have remembered this myself !!! Thanks for reminding me.

= jem
-- 
https://mail.python.org/mailman/listinfo/python-list


Displaying CPU instruction sets used for TensorFlow build?

2023-09-05 Thread Loris Bennett via Python-list
Hi,

Does anyone know how I can display the CPU instruction sets which were
used when TensorFlow was compiled?

I initially compiled TF on a machine with a CPU which supports
AVX512_VNNI.  I subsequently recompiled on a second machine without
AVX512_VNNI, but when I run a test program on the second machine, I get
the error:

  The TensorFlow library was compiled to use AVX512_VNNI instructions,
  but these aren't available on your machine.

I would like to check the instruction sets explicitly, so I can tell
whether I am using the version of TF I think I am, or whether the test
program has some sort of problem.

Cheers,

Loris

-- 
This signature is currently under constuction.
-- 
https://mail.python.org/mailman/listinfo/python-list