We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
line 43, what does this line mean? what does the <float, 2> mean? what does x_map(0, j) = (*vec)[j]; mean?
auto x_map = x.tensor<float, 2>(); for (int j = 0; j < ndim; j++) { x_map(0, j) = (*vec)[j]; }
The text was updated successfully, but these errors were encountered:
我现在想输入一张1160160 *3的图片,这里该怎么改?下面这种改法对吗? // Create New tensor and set value Tensor x(tensorflow::DT_FLOAT, tensorflow::TensorShape({1, 160, 160, 3})); // New Tensor shape [1, 160, 160, 3] auto x_map = x.tensor<float, 160 * 160 * 3>(); for (int j = 0; j < 160 * 160 * 3; j++) { x_map(0, j) = (*vec)[j]; }
Sorry, something went wrong.
No branches or pull requests
line 43, what does this line mean? what does the <float, 2> mean?
what does x_map(0, j) = (*vec)[j]; mean?
auto x_map = x.tensor<float, 2>();
for (int j = 0; j < ndim; j++) {
x_map(0, j) = (*vec)[j];
}
The text was updated successfully, but these errors were encountered: