Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Tensorflow C++ Tensor.SubSlice(1)

I am coding my own neural network with tensorflow c++ api. I have a tensor with all data with shape [65000, 784] and reshaped it to tensor with shape [2031, 32, 784] to use it as batches. To use the ...
SknG's user avatar
  • 1
0 votes
1 answer
311 views

Is there an equivalent of tf.gradients function in tensorflow C or C++ API?

I want to implement a tensorflows function tf.gradients in C or C++ API? Tensorflow C++ has the worst documentation in the world and C API aren't documented at all. Can you suggest if there is an ...
user2426998's user avatar
0 votes
1 answer
37 views

passing one image from batch to function in c++

I'm trying to change a code in this repo from 2D to 3D; https://github.com/sadeepj/crfasrnn_keras However, my C++ is super rusty and I'm having a hard time with one problem. I'm trying to pass the ...
jongsung park's user avatar
1 vote
1 answer
609 views

Immediate runtime error with Tensorflow C api on M1 Mac

I am trying to use the Tensorflow C api in an xcode project. As soon as the app starts running a BAD_INSTRUCTION error is generated on the main thread. This error comes from: tensorflow::monitoring::...
WalleyM's user avatar
  • 172
1 vote
1 answer
266 views

How to build single-threaded TensorFlow 2.x from source

While building TensorFlow 2.x (for CPU) from source, what change should I make to force the TensorFlow not to use more than 1 threads? If this is not possible, what specific c++ statements (and in ...
fisakhan's user avatar
  • 802