Native TensorFlow bindings for Node.JS
npm install tensorflow
- Fully exposes the TensorFlow C API
- Fast native bindings (no FFI)
- Composable, intuitive wrapper API
- No TensorFlow install/build required
Returns true if the tensor doesn't contain NaN or Infinity values.
quantize = true || { signed: // If the quantization is signed or unsigned. bits: // The bitwidth of the quantization. minRange: maxRange: }
opts = { upper: true || number of superdiagonals to keep lower: true || number of subdiagonals to keep } if given a diagonal, this method sets the diagonal values
opts = { output_range_given: If True, given_y_min and given_y_min and given_y_max are used as the output range. Otherwise, the implementation computes the output range. given_y_min: Output in y_min if output_range_given is True. given_y_max: Output in y_max if output_range_given is True. variance_epsilon: A small float number to avoid dividing by 0. min_separation: Minimum value of y_max - y_min }
Return the shape of the tensor.
If shape is provided, sets the shape of the tensor.
opts = { axis: 1, depth: 1, zeros: 0.1 }