根据此 - How to use a pretrained model from s3 to Predict some data? ,我试图使用现有模型来创建端点,但我遇到了以下错误 -
Traceback (most recent call last):
File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 55, in handle
self.handle_request(listener_name, req, client, addr)
File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line 143, in handle_request
super().handle_request(listener_name, req, sock, addr)
File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 106, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/miniconda3/lib/python3.7/site-packages/sagemaker_sklearn_container/serving.py", line 124, in main
serving_env.module_dir)
File "/miniconda3/lib/python3.7/site-packages/sagemaker_sklearn_container/serving.py", line 101, in import_module
user_module = importlib.import_module(module_name)
File "/miniconda3/lib/python3.7/importlib/__init__.py", line 118, in import_module
if name.startswith('.'):
Run Code Online (Sandbox Code Playgroud)
#include <stdio.h>
struct Ournode {
char x, y, z;
};
int main() {
struct Ournode p = {'1', '0', 'a' + 2};
struct Ournode *q = &p;
printf("%c, %c", *((char *)q + 1), *((char *)q + 2));
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我在 geeksforgeeks(https://www.geeksforgeeks.org/c-language-2-gq/input-and-output-gq/)(问题 21)上遇到了这个问题。*q 如何访问 p 的元素?如果我们有像这样的结构怎么办
struct Ournode {
int a,b,c;
char x, y, z;
int d;
};
int main() {
struct Ournode p = {3,4,5,'1', '0', 'a' + 2,6};
struct Ournode *q = &p;
printf("%c, %c", *((char …Run Code Online (Sandbox Code Playgroud)