Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for InvalidArgument (0.39 sec)

  1. 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)
  2. cmd/api-errors.go

    		Code:           "InvalidArgument",
    		Description:    "Argument maxKeys must be an integer between 0 and 2147483647",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidEncodingMethod: {
    		Code:           "InvalidArgument",
    		Description:    "Invalid Encoding Method specified in Request",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidMaxParts: {
    		Code:           "InvalidArgument",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  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/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)
  5. 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)
  6. cmd/object-api-errors.go

    	VersionID string
    	Err       error
    }
    
    // Unwrap the error to its underlying error.
    func (e GenericError) Unwrap() error {
    	return e.Err
    }
    
    // InvalidArgument incorrect input argument
    type InvalidArgument GenericError
    
    func (e InvalidArgument) Error() string {
    	if e.Err != nil {
    		return "Invalid arguments provided for " + e.Bucket + "/" + e.Object + ": (" + e.Err.Error() + ")"
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.cc

      if (ctx == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid Context");
        return nullptr;
      }
    
      tensorflow::AbstractTensorInterface* t =
          tensorflow::unwrap(ctx)->CreateTensor(
              static_cast<tensorflow::DataType>(dtype), dimvec);
    
      if (t == nullptr) {
        status->status =
            tensorflow::errors::InvalidArgument("Unsupported dtype: ", dtype);
        return nullptr;
      }
    
    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)
  8. cmd/erasure-multipart.go

    	onlineDisks := er.getDisks()
    	writeQuorum := fi.WriteQuorum(er.defaultWQuorum())
    
    	if cs := fi.Metadata[hash.MinIOMultipartChecksum]; cs != "" {
    		if r.ContentCRCType().String() != cs {
    			return pi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    				Err:    fmt.Errorf("checksum missing, want %q, got %q", cs, r.ContentCRCType().String()),
    			}
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    			s3LogIf(ctx, err)
    			return opts, InvalidVersionID{
    				Bucket:    bucket,
    				Object:    object,
    				VersionID: vid,
    			}
    		}
    		if !versioned && !versionSuspended {
    			return opts, InvalidArgument{
    				Bucket: bucket,
    				Object: object,
    				Err:    fmt.Errorf("version-id specified %s but versioning is not enabled on %s", opts.VersionID, bucket),
    			}
    		}
    	}
    	return ObjectOptions{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  10. cmd/object-handlers_test.go

    			dataLen:            len(bytesData),
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    			wantAPICode:        "InvalidArgument",
    		},
    		// Test Case with invalid Content-Md5 value
    		3: {
    			bucketName:         bucketName,
    			objectName:         objectName,
    			headers:            invalidMD5Header,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top