Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2021-07-11 20:51:43.649245: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
- 2021-07-11 20:51:45.730812: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
- 2021-07-11 20:51:45.731633: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library nvcuda.dll
- 2021-07-11 20:51:45.753842: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
- pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3070 computeCapability: 8.6
- coreClock: 1.815GHz coreCount: 46 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 417.29GiB/s
- 2021-07-11 20:51:45.754131: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
- 2021-07-11 20:51:45.758254: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll
- 2021-07-11 20:51:45.758375: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll
- 2021-07-11 20:51:45.760347: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cufft64_10.dll
- 2021-07-11 20:51:45.761361: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll
- 2021-07-11 20:51:45.762192: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
- 2021-07-11 20:51:45.763893: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll
- 2021-07-11 20:51:45.764706: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudnn64_8.dll'; dlerror:
- cudnn64_8.dll not found
- 2021-07-11 20:51:45.764869: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1757] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
- Skipping registering GPU devices...
- 2021-07-11 20:51:45.765328: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network
- Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
- To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
- 2021-07-11 20:51:45.766299: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
- 2021-07-11 20:51:45.766431: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267]
- 2021-07-11 20:51:45.766534: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
- WARNING:tensorflow:No training configuration found in save file, so the model was *not* compiled. Compile it manually.
- 2021-07-11 20:51:46.088826: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
- WARNING:tensorflow:Model was constructed with shape (None, 28, 28, 1) for input KerasTensor(type_spec=TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='Image_paths'), name='Image_paths', description="created by layer 'Image_paths'"), but it was called on an input with incompatible shape
- (None, 28).
- Traceback (most recent call last):
- File "b:/Toernblom/Python/Tests/main.py", line 13, in <module>
- model.predict(img)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1629, in predict
- tmp_batch_outputs = self.predict_function(iterator)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py", line 828, in __call__
- result = self._call(*args, **kwds)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py", line 871, in _call
- self._initialize(args, kwds, add_initializers_to=initializers)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py", line 726, in _initialize
- *args, **kwds))
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py", line 2969, in _get_concrete_function_internal_garbage_collected
- graph_function, _ = self._maybe_define_function(args, kwargs)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py", line 3361, in _maybe_define_function
- graph_function = self._create_graph_function(args, kwargs)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py", line 3206, in _create_graph_function
- capture_by_value=self._capture_by_value),
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\func_graph.py", line 990, in func_graph_from_py_func
- func_outputs = python_func(*func_args, **func_kwargs)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py", line 634, in wrapped_fn
- out = weak_wrapped_fn().__wrapped__(*args, **kwds)
- File "C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\func_graph.py", line 977, in wrapper
- raise e.ag_error_metadata.to_exception(e)
- ValueError: in user code:
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py:1478 predict_function *
- return step_function(self, iterator)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py:1468 step_function **
- outputs = model.distribute_strategy.run(run_step, args=(data,))
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:1259 run
- return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2730 call_for_each_replica return self._call_for_each_replica(fn, args, kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:3417 _call_for_each_replica
- return fn(*args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py:1461 run_step **
- outputs = model.predict_step(data)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py:1434 predict_step
- return self(x, training=False)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:1012 __call__
- outputs = call_fn(inputs, *args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\functional.py:425 call
- inputs, training=training, mask=mask)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\functional.py:560 _run_internal_graph
- outputs = node.layer(*args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:1012 __call__
- outputs = call_fn(inputs, *args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\saved_model\utils.py:73 return_outputs_and_add_losses
- outputs, losses = fn(inputs, *args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\saved_model\utils.py:171 wrap_with_training_arg
- lambda: replace_training_and_call(False))
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\utils\control_flow_util.py:115 smart_cond
- pred, true_fn=true_fn, false_fn=false_fn, name=name)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\smart_cond.py:56 smart_cond
- return false_fn()
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\saved_model\utils.py:171 <lambda>
- lambda: replace_training_and_call(False))
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\saved_model\utils.py:167 replace_training_and_call
- return wrapped_call(*args, **kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py:828 __call__
- result = self._call(*args, **kwds)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py:862 _call
- results = self._stateful_fn(*args, **kwds)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py:2941 __call__
- filtered_flat_args) = self._maybe_define_function(args, kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py:3361 _maybe_define_function
- graph_function = self._create_graph_function(args, kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\function.py:3206 _create_graph_function
- capture_by_value=self._capture_by_value),
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\func_graph.py:990 func_graph_from_py_func
- func_outputs = python_func(*func_args, **func_kwargs)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\def_function.py:634 wrapped_fn
- out = weak_wrapped_fn().__wrapped__(*args, **kwds)
- C:\Users\Anton\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\function_deserialization.py:273 restored_function_body
- "\n\n".join(signature_descriptions)))
- ValueError: Could not find matching function to call loaded from the SavedModel. Got:
- Positional arguments (2 total):
- * {'Image_paths': <tf.Tensor 'inputs:0' shape=(None, 28) dtype=float32>}
- * False
- Keyword arguments: {}
- Expected these arguments to match one of the following 4 option(s):
- Option 1:
- Positional arguments (2 total):
- * {'Image_paths': TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='inputs/Image_paths')}
- * False
- Keyword arguments: {}
- Option 2:
- Positional arguments (2 total):
- * {'Image_paths': TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='inputs/Image_paths')}
- * True
- Keyword arguments: {}
- Option 3:
- Positional arguments (2 total):
- * {'Image_paths': TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='Image_paths')}
- * False
- Keyword arguments: {}
- Option 4:
- Positional arguments (2 total):
- * {'Image_paths': TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='Image_paths')}
- * True
- Keyword arguments: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement