Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for InvalidArgument (0.22 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/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)
  3. cmd/object-api-options.go

    				VersionID: vid,
    			}
    		}
    		if !versioned {
    			return opts, InvalidArgument{
    				Bucket: bucket,
    				Object: object,
    				Err:    fmt.Errorf("VersionID specified %s, but versioning not enabled on bucket=%s", opts.VersionID, bucket),
    			}
    		}
    	}
    	opts, err = putOptsFromHeaders(ctx, hdrs, metadata)
    	if err != nil {
    		return opts, InvalidArgument{
    			Bucket: bucket,
    			Object: object,
    			Err:    err,
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  4. 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)
  5. cmd/batch-expire.go

    	}
    
    	if r.APIVersion != batchExpireAPIVersion {
    		return batchExpireJobError{
    			Code:           "InvalidArgument",
    			Description:    "Unsupported batch expire API version",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	if r.Bucket == "" {
    		return batchExpireJobError{
    			Code:           "InvalidArgument",
    			Description:    "Bucket argument missing",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  6. tensorflow/c/c_api_experimental.cc

    #include "tensorflow/core/protobuf/tensorflow_server.pb.h"
    
    using tensorflow::FunctionDef;
    using tensorflow::Node;
    using tensorflow::NodeBuilder;
    using tensorflow::Status;
    using tensorflow::errors::InvalidArgument;
    
    namespace {
    typedef std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)>
        UniqueFuncPtr;
    }
    
    // struct TF_Operation { tensorflow::Node node; };
    static TF_Operation* ToTF_Operation(Node* node) {
    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. cmd/bucket-lifecycle-handlers_test.go

    			expectedRespStatus: http.StatusBadRequest,
    			lifecycleResponse:  []byte(``),
    			errorResponse: APIErrorResponse{
    				Resource: SlashSeparator + bucketName + SlashSeparator,
    				Code:     "InvalidArgument",
    				Message:  "Filter must have exactly one of Prefix, Tag, or And specified",
    			},
    
    			shouldPass: false,
    		},
    		// Date contains wrong format
    		{
    			method:             http.MethodPut,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  8. 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)
  9. cmd/bucket-replication-handlers.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrBadRequest, InvalidArgument{
    			Bucket: bucket,
    			Err:    fmt.Errorf("Remote target ARN %s missing or ineligible for replication resync", arn),
    		}), r.URL)
    		return
    	}
    
    	if len(tgtArns) > 1 && arn == "" {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrBadRequest, InvalidArgument{
    			Bucket: bucket,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 28 04:08:53 GMT 2023
    - 23.2K 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