Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Invalid (0.21 sec)

  1. tensorflow/c/c_api_test.cc

      TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, 5, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Try to set an invalid shape (cannot change 2x3 to a 2x5).
      dims[1] = 5;
      TF_GraphSetTensorShape(graph, feed_out_0, dims, 2, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Test for a scalar.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  2. tensorflow/c/eager/c_api.cc

        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      } else if (context->GetContextId() ==
                 tensorflow::EagerContext::kInvalidContextId) {
        status->status = tensorflow::errors::InvalidArgument(
            "Trying to update a context with invalid context id.");
      }
      status->status =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  3. tensorflow/c/eager/dlpack.cc

                                          int ndim) {
      bool valid = true;
      int64_t expected_stride = 1;
      for (int i = ndim - 1; i >= 0; --i) {
        // Empty tensors are always compact regardless of strides.
        if (shape_arr[i] == 0) return true;
        // Note that dimensions with size=1 can have any stride.
        if (shape_arr[i] != 1 && stride_arr[i] != expected_stride) {
          valid = false;
        }
        expected_stride *= shape_arr[i];
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. configure.py

                                                          default_python_bin_path)
        # Check if the path is valid
        if os.path.isfile(python_bin_path) and os.access(python_bin_path, os.X_OK):
          break
        elif not os.path.exists(python_bin_path):
          print('Invalid python path: {} cannot be found.'.format(python_bin_path))
        else:
          print('{} is not executable.  Is it the python binary?'.format(
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_experimental.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      return tensorflow::unwrap(h)->DeviceType(&status->status);
    }
    
    int TFE_TensorHandleDeviceID(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  6. tensorflow/c/c_api_experimental.cc

      tensorflow::GraphDef gdef;
      if (!tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &gdef)) {
        status->status = tensorflow::errors::Internal(
            "Invalid text proto for GraphDef: ", text_proto);
        return {};
      }
      const auto& fdef_lib = gdef.library();
      if (fdef_lib.gradient_size() > 0) {
        status->status = tensorflow::errors::Internal(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  7. ci/official/envs/rbe

    # TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX. "Available" means there is
    # an entry in tensorflow/.bazelrc for build:rbe_TFCI_BAZEL_TARGET...
    #                                           ^^^^
    # This env is only valid when RBE is available on the selected platform, since
    # it enables a derived --config setting.  If RBE is not available (i.e. there
    # is no --config setting), bazel would fail and quit. This script does a quick
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.cc

                        size_t proto_len, TF_Status* status) {
      GraphDef g;
      if (!tensorflow::ParseProtoUnlimited(&g, proto, proto_len)) {
        status->status = InvalidArgument("Invalid GraphDef");
        return;
      }
      status->status = s->session->Extend(g);
    }
    
    }  // end extern "C"
    
    // Reset helper for converting character arrays to string vectors.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  9. RELEASE.md

            *   Using `functools.wraps` on a function with different signature
            *   Using `functools.partial` with an invalid `tf.function` input
        *   `tf.function` now enforces input parameter names to be valid Python identifiers. Incompatible names are automatically sanitized similarly to existing SavedModel signature behavior.
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  10. tensorflow/c/eager/tape.h

            auto op_it = op_tape.find(tensor_it->second);
            if (op_it == op_tape.end()) {
              return errors::Internal(
                  "Internal state of the gradient tape is invalid: "
                  "failed to find operation producing a tensor");
            }
            bool found = false;
            for (int j = 0; j < op_it->second.output_tensor_info.size(); ++j) {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
Back to top