Comments (5)
SciKeras isn't doing anything special with CPU cores or GPUs. That depends on how you configure TensorFlow. We just call TensorFlow for the actual training.
from scikeras.
Many thanks for the answer. I just did "pip install scikeras tensorflow-cpu" - no other special configuration of tensorflow-cpu.
from scikeras.
If you run the model out of SciKeras what do you see?
from scikeras.
2023-03-13 18:36:31.033240: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0
.
2023-03-13 18:36:31.050409: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
...
2023-03-13 18:36:38.694386: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_11' with dtype float and shape [704198]
[[{{node Placeholder/_11}}]]
2023-03-13 18:36:38.694517: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_11' with dtype float and shape [704198]
[[{{node Placeholder/_11}}]]
After this, the training starts.
In the meantime I found the tensorflow version 2.11.0 of Intel (https://www.intel.com/content/www/us/en/developer/articles/guide/optimization-for-tensorflow-installation-guide.html). I installed this in my Python 3.10 environment and voila it uses all CPU cores.
However, interestingly the standard version of tensorflow-cpu installed in my Python 3.11 environment which makes use of only one CPU core is much faster producing the same results :)
from scikeras.
@maxrpunkt This may be expected behaviour, not related to SciKeras. A lot of TensorFlow CPU routines use a single core only.
from scikeras.
Related Issues (20)
- Trouble saving with joblib when using the tqdm callback HOT 3
- Scikeras and Keras Input layer HOT 4
- Pass the `loss` from the `compile` call to the target_encoder instantiation HOT 7
- Whats the best way to do KFold manually? HOT 8
- Initializing a pretrained model without using training data HOT 2
- RecursionError: maximum recursion depth exceeded HOT 1
- validation_data parameter instead of validation_split? HOT 4
- AttributeError: 'Adam' object has no attribute 'build' HOT 3
- UNKNOWN: NewRandomAccessFile failed to Create/Open HOT 4
- Overwrite _fit function HOT 1
- adriangb.com/scikeras is DOWN HOT 4
- Target from LabelBinarizer detected as `task type: multilabel-indicator` HOT 1
- How to use the wrappers function in onnx? HOT 8
- Model performance difference when using KerasClassifier HOT 2
- KerasClassifier model weights does not look properly reset before being fit HOT 2
- Reporting Vulnerability HOT 3
- bug when the metric is a string HOT 3
- Multidimensional data inputs HOT 1
- Citation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikeras.