Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DT_STRING (0.1 sec)

  1. tensorflow/c/c_api_test.cc

      Status status;
      for (const std::vector<int64_t>& dims :
           std::vector<std::vector<int64_t>>{{n}, {1, n}, {n, 1}, {n / 2, 2}}) {
        // Create C++ Tensor
        Tensor src(tensorflow::DT_STRING, TensorShape(dims));
        for (int64_t i = 0; i < src.NumElements(); ++i) {
          src.flat<tstring>()(i) = data[i];
        }
        TF_Tensor* dst = TF_TensorFromTensor(src, &status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

        Node* a = ops::SourceOp(
            "Const", builder.opts()
                         .WithName("A")
                         .WithAttr("dtype", DT_STRING)
                         .WithAttr("value", Tensor(DT_STRING, TensorShape())));
        Node* b = ops::UnaryOp("EncodeBase64", a, builder.opts().WithName("B"));
        ops::BinaryOp("StringSplit", a, b, builder.opts().WithName("C"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/mark_for_compilation_pass.cc

          continue;
        }
    
        if (node->type_string() == "Const") {
          // Skip Const op with type DT_STRING, since XLA autoclustering doesn't
          // support it.
          const AttrValue* attr = node->attrs().Find("dtype");
          if (attr != nullptr && attr->type() == DT_STRING) {
            continue;
          }
        }
    
        if (!allowlist.empty() && !allowlist.contains(node->def().op())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

      const std::string& func_str =
          "    signature {"
          "      name: 'FunctionWith__OP_NAME__'"
          "      output_arg {"
          "        name: 'out'"
          "        type: DT_STRING"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'error_op'"
          "      op: '__OP_NAME__'"
          "    }"
          "    ret {"
          "      key: 'out'"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
Back to top