Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for num_dims (0.04 sec)

  1. tensorflow/c/c_api_experimental_test.cc

        CHECK_EQ(output_shapes->num_items, 1);
    
        int num_dims = output_shapes->items[0].num_dims;
        int64_t* dims = output_shapes->items[0].dims;
    
        if (!expected_shape.has_value()) {
          EXPECT_EQ(num_dims, -1);
          EXPECT_EQ(dims, nullptr);
          return;
        }
    
        EXPECT_EQ(num_dims, expected_shape->size());
        for (size_t i = 0; i < num_dims; ++i) {
          EXPECT_EQ(dims[i], (*expected_shape)[i]);
        }
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

                                     const int64_t* dims, int num_dims) {
      DCHECK(index >= 0 && index < shape_list->num_items);
      TF_ShapeAndType& shape = shape_list->items[index];
      DCHECK(shape.dims == nullptr) << "Shape at " << index << " is already set!";
      DCHECK(num_dims >= 0) << "Number of dimensions cannot be negative!";
      shape.num_dims = num_dims;
      shape.dims = new int64_t[num_dims];
      memcpy(shape.dims, dims, sizeof(int64_t) * num_dims);
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 03:53:25 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.h

    // Read the shape of a variable and write to `dims`
    TF_CAPI_EXPORT extern void TF_CheckpointReaderGetVariableShape(
        TF_CheckpointReader* reader, const char* name, int64_t* dims, int num_dims,
        TF_Status* status);
    // Get the number of dimension of a variable
    TF_CAPI_EXPORT extern int TF_CheckpointReaderGetVariableNumDims(
        TF_CheckpointReader* reader, const char* name);
    // Load the weight of a variable
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            lsarpc.LsarSidArray decodedArray = new lsarpc.LsarSidArray();
            decodedArray.decode(decodeBuffer);
    
            // Verify the decoded data matches
            assertEquals(sidArray.num_sids, decodedArray.num_sids);
            assertNotNull(decodedArray.sids);
            assertEquals(2, decodedArray.sids.length);
    
            // Verify first SID
            assertNotNull(decodedArray.sids[0]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

            }
    
            /** Number of SIDs in the array. */
            public int num_sids;
            /** Array of SID pointers. */
            public LsarSidPtr[] sids;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(this.num_sids);
                _dst.enc_ndr_referent(this.sids, 1);
    
                if (this.sids != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

            }
    
            /** Number of SIDs in the array. */
            public int num_sids;
            /** Array of SID pointers. */
            public LsarSidPtr[] sids;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(num_sids);
                _dst.enc_ndr_referent(sids, 1);
    
                if (sids != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 42.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SIDCacheImpl.java

                        if (rpc.retval != 0) {
                            throw new SmbException(rpc.retval, false);
                        }
                        final SID[] sids = new SID[rpc.sids.num_sids];
    
                        final String origin_server = handle.getServer();
                        final CIFSContext origin_ctx = handle.getTransportContext();
    
                        for (int i = 0; i < sids.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SID.java

                handle.sendrecv(rpc);
                if (rpc.retval != 0) {
                    throw new SmbException(rpc.retval, false);
                }
                final SID[] sids = new SID[rpc.sids.num_sids];
    
                final String origin_server = handle.getServer();
                final NtlmPasswordAuthentication origin_auth = (NtlmPasswordAuthentication) handle.getPrincipal();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
Back to top