Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 298 for unwrap (0.05 sec)

  1. tensorflow/c/eager/c_api_remote_test_util.cc

        TFE_OpSetDevice(matmul, cpu_device_name.c_str(), status);
        EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        auto remote_arg =
            tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h1_task2));
        // The input handles should never change since they have been mirrored.
        ASSERT_FALSE(remote_arg->HasLocalMirror(nullptr));
      }
    
      TFE_TensorHandle* retvals[1];
      int num_retvals = 1;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/Credentials.java

     * @author mbechler
     *
     */
    public interface Credentials {
    
        /**
         * 
         * @param type
         * @return instance for type, null if the type cannot be unwrapped
         */
        <T extends Credentials> T unwrap ( Class<T> type );
    
    
        /**
         * @return the domain the user account is in
         */
        String getUserDomain ();
    
    
        /**
         * @return whether these are anonymous credentials
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_TensorHandle* var_handle0 = TestVariable(ctx, 1.0, dev0_name);
      EXPECT_NE(var_handle0, nullptr);
    
      absl::Status status2;
      EXPECT_EQ(tensorflow::unwrap(var_handle0)->DeviceName(&status2), dev0_name);
    
      // Rename local device
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

          } else {
            TF_SetStatus(
                status, TF_INVALID_ARGUMENT,
                absl::StrCat(
                    "Got a non-parallel tensor ",
                    tensorflow::unwrap(absl::get<TFE_TensorHandle*>(input))
                        ->DebugString(),
                    " as input to a parallel operation. First pack non-parallel "
                    "tensors for each device into a parallel tensor explicitly.")
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            this.uncPath = this.pipe.getUncPath();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#unwrap(java.lang.Class)
         */
        @SuppressWarnings ( "unchecked" )
        @Override
        public <T extends SmbPipeHandle> T unwrap ( Class<T> type ) {
            if ( type.isAssignableFrom(this.getClass()) ) {
                return (T) this;
            }
            throw new ClassCastException();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_debug.cc

    extern "C" {
    
    TF_CAPI_EXPORT extern TFE_TensorDebugInfo* TFE_TensorHandleTensorDebugInfo(
        TFE_TensorHandle* h, TF_Status* status) {
      tensorflow::TensorHandle* handle =
          TensorHandleFromInterface(tensorflow::unwrap(h));
      const tensorflow::Tensor* tensor;
      status->status = handle->Tensor(&tensor);
      if (!status->status.ok()) {
        return nullptr;
      }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/extra-models.md

        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Unwrapping a `dict`
    
    If we take a `dict` like `user_dict` and pass it to a function (or class) with `**user_dict`, Python will "unwrap" it. It will pass the keys and values of the `user_dict` directly as key-value arguments.
    
    So, continuing with the `user_dict` from above, writing:
    
    ```Python
    UserInDB(**user_dict)
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. 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;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NtlmHttpFilter.java

            try ( SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, 0, false, tf.hasDefaultCredentials() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class) ) {
                if ( !tf.hasDefaultCredentials() ) {
                    trans.ensureConnected();
                    log.warn(
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.8K bytes
    - Viewed (0)
  10. internal/kms/errors.go

    		APICode: "kms:NotSupported",
    		Err:     "requested functionality is not supported",
    	}
    )
    
    // Error is a KMS error that can be translated into an S3 API error.
    //
    // It does not implement the standard error Unwrap interface for
    // better error log messages.
    type Error struct {
    	Code    int    // The HTTP status code returned to the client
    	APICode string // The API error code identifying the error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 16 14:03:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top