Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for shape_2 (0.08 sec)

  1. tensorflow/c/c_api_test.cc

    TEST_F(CApiAttributesTest, ShapeList) {
      const int64_t shape_1[] = {1, 3};
      const int64_t shape_2[] = {2, 4, 6};
      const int64_t* list[] = {&shape_1[0], &shape_2[0]};
      const size_t list_size = TF_ARRAYSIZE(list);
      const int ndims[] = {TF_ARRAYSIZE(shape_1), TF_ARRAYSIZE(shape_2)};
      const int total_ndims = 5;  // ndims[0] + ndims[1]
    
      auto desc = init("list(shape)");
      TF_SetAttrShapeList(desc, "v", list, ndims, list_size);
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      std::vector<PartialTensorShape> shapes;
      shapes.reserve(num_shapes);
      for (int i = 0; i < num_shapes; ++i) {
        if (num_dims[i] < 0) {
          shapes.emplace_back();
        } else {
          shapes.emplace_back(absl::Span<const int64_t>(
              reinterpret_cast<const int64_t*>(dims[i]), num_dims[i]));
        }
      }
      desc->node_builder.Attr(attr_name, shapes);
    }
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

    // setting a shape of [-1, 2] with an existing shape [2, -1] would set
    // a final shape of [2, 2] based on shape merging semantics.
    //
    // Returns an error into `status` if:
    //   * `output` is not in `graph`.
    //   * An invalid shape is being set (e.g., the shape being set
    //     is incompatible with the existing shape).
    TF_CAPI_EXPORT extern void TF_GraphSetTensorShape(TF_Graph* graph,
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            populatedArray.count = 3;
            populatedArray.s = new netdfs.DfsInfo200[3];
    
            // Create DFS root entries
            String[] rootNames = { "share1", "share2", "share3" };
            for (int i = 0; i < 3; i++) {
                netdfs.DfsInfo200 entry = new netdfs.DfsInfo200();
                entry.dfs_name = rootNames[i];
                populatedArray.s[i] = entry;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. RELEASE.md

    *   Tracing/timeline support for distributed runtime (no GPU profiler yet).
    *   C API gives access to inferred shapes with `TF_GraphGetTensorNumDims` and
        `TF_GraphGetTensorShape`.
    *   Shape functions for core ops have moved to C++ via
        `REGISTER_OP(...).SetShapeFn(...)`. Python shape inference RegisterShape
        calls use the C++ shape functions with `common_shapes.call_cpp_shape_fn`. A
        future release will remove `RegisterShape` from python.
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (1)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            shareInfo1.type = 0;
            shareInfo1.remark = "Remark for Share1";
    
            srvsvc.ShareInfo1 shareInfo2 = new srvsvc.ShareInfo1();
            shareInfo2.netname = "Share2";
            shareInfo2.type = 1;
            shareInfo2.remark = "Remark for Share2";
    
            // Create ShareInfoCtr1 with the shares
            srvsvc.ShareInfoCtr1 shareInfoCtr1 = new srvsvc.ShareInfoCtr1();
            shareInfoCtr1.count = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            SmbShareInfo share2 = (SmbShareInfo) response.results[1];
            assertEquals("IPC$", share2.getName().trim(), "Share 2 name should be correct.");
            assertEquals(3, share2.type, "Share 2 raw type should be 3.");
            assertEquals("Inter-Process Communication", share2.remark.trim(), "Share 2 remark should be correct.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental.cc

        ShapeHandle shape_handle = c.output(i);
        TF_ShapeAndType& shape = output_shapes_result->items[i];
        shape.num_dims = c.Rank(shape_handle);
        if (shape.num_dims == InferenceContext::kUnknownRank) {
          shape.dims = nullptr;
          continue;
        }
        shape.dims = new int64_t[shape.num_dims];
        for (size_t j = 0; j < shape.num_dims; ++j) {
          shape.dims[j] = c.Value(c.Dim(shape_handle, j));
        }
      }
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 03:53:25 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java

            dfsEnumArray.s[0] = new DfsInfo200();
            dfsEnumArray.s[0].dfs_name = "\\domain\share1";
            dfsEnumArray.s[1] = new DfsInfo200();
            dfsEnumArray.s[1].dfs_name = "\\domain\share2";
    
            // Manually set the DfsEnumArray200 to the info struct
            dfsRootEnum.info.e = dfsEnumArray;
    
            // When
            FileEntry[] entries = dfsRootEnum.getEntries();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

        void testEquals() {
            SmbShareInfo instance1 = new SmbShareInfo("SHARE1", 0, "remark1");
            SmbShareInfo instance2 = new SmbShareInfo("SHARE1", 1, "remark2");
            SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1");
            Object notAShareInfo = new Object();
    
            assertTrue(instance1.equals(instance2)); // Should be equal based on netName
            assertFalse(instance1.equals(instance3)); // Should not be equal
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top