Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for InvalidArgument (0.3 sec)

  1. tensorflow/c/eager/dlpack.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      tensorflow::TensorHandle* handle =
          tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h));
      if (handle->Type() != TensorHandle::LOCAL) {
        status->status = tensorflow::errors::InvalidArgument(
            "DLPack doesn't support ", handle->TypeString(), " tensor");
        return nullptr;
    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)
  2. tensorflow/c/experimental/gradients/tape/tape_operation.cc

    }
    Status TapeOperation::SetAttrShape(const char* attr_name, const int64_t* dims,
                                       const int num_dims) {
      if (num_dims > TensorShape::MaxDimensions()) {
        return errors::InvalidArgument("Value specified for `", attr_name, "` has ",
                                       num_dims,
                                       " dimensions which is over the limit of ",
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  3. tensorflow/c/c_api.cc

                                          run_options->data, run_options->length)) {
          status->status = InvalidArgument("Unparseable RunOptions proto");
          return;
        }
        if (run_metadata != nullptr && run_metadata->data != nullptr) {
          status->status =
              InvalidArgument("Passing non-empty run_metadata is invalid.");
          return;
        }
    
        RunMetadata run_metadata_proto;
    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)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      if (ops_->stat == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support Stat()"));
    
      if (stat == nullptr)
        return errors::InvalidArgument("FileStatistics pointer must not be NULL");
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      std::string translated_name = TranslateName(fname);
      TF_FileStatistics stats;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental.cc

        factories_sorted.insert(factory.first);
      const char* comma = "";
      for (const string& factory : factories_sorted) {
        msg += comma + factory;
        comma = ", ";
      }
      msg += ")";
    
      return errors::InvalidArgument(msg.c_str());
    }
    
    static TracingContext* CreateTracingExecutionContext(const char* fn_name,
                                                         TF_Status* s) {
      if (default_factory) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_function.cc

    #include "tensorflow/core/platform/strcat.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    
    using tensorflow::errors::InvalidArgument;
    
    namespace tensorflow {
    namespace {
    
    Status ValidateNonRefOutput(const Node* node, int idx) {
      const DataType& dt = node->output_type(idx);
      return IsRefType(dt)
                 ? InvalidArgument("Output ", idx, " of node '", node->name(),
                                   "' has a reference type ", DataTypeString(dt))
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api.cc

      if (!server_def.ParseFromArray(proto, proto_len)) {
        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)
  8. tensorflow/c/eager/unified_api_test.cc

      TF_RETURN_IF_ERROR(inputs[0]->Shape(&shape));
      if (shape.dims() != 2) {
        return errors::InvalidArgument(
            "Tensor expected to have rank 2 found rank: ", shape.dims());
      }
      int64_t dim_sizes[] = {2, 4};
      for (int i = 0; i < shape.dims(); i++) {
        if (shape.dim_size(i) != dim_sizes[i]) {
          return errors::InvalidArgument("Dim ", i, " expected to be of size ",
                                         dim_sizes[i],
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradients.cc

        gtl::ArraySlice<AbstractTensorHandle*> output_gradients,
        absl::Span<AbstractTensorHandle*> result) const {
      if (gradient_function == nullptr) {
        return errors::InvalidArgument(
            "Provided null gradient_function for '", op_type, "'.\n",
            "If the intent is to treat this op as non-differentiable consider "
            "using RegisterNotDifferentiable or "
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
    
      Status AddInput(AbstractTensorHandle* input) override {
        GraphTensor* t = dyn_cast<GraphTensor>(input);
        if (!t) {
          return tensorflow::errors::InvalidArgument(
              "Unable to cast input to GraphTensor");
        }
        TF_AddInput(op_.get(), t->output_);
        return absl::OkStatus();
      }
      Status AddInputList(absl::Span<AbstractTensorHandle* const> inputs) override {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
Back to top