Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for insert (0.17 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      std::unique_ptr<tensorflow::GrpcServer> worker_server1;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

          "' (available: ");
      // Ensure deterministic (sorted) order in the error message
      std::set<string> factories_sorted;
      for (const auto& factory : GetFactories())
        factories_sorted.insert(factory.first);
      const char* comma = "";
      for (const string& factory : factories_sorted) {
        msg += comma + factory;
        comma = ", ";
      }
      msg += ")";
    
      return errors::InvalidArgument(msg.c_str());
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

          return;
        }
        desc->colocation_constraints.clear();
        for (const string& location : attr_value.list().s()) {
          desc->colocation_constraints.insert(location);
        }
      } else {
        desc->node_builder.Attr(attr_name, std::move(attr_value));
      }
    
      status->status = absl::OkStatus();
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_debug_test.cc

      TFE_TensorHandle* h = TestScalarTensorHandle(ctx, 1.0f);
      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
    
      TFE_DeleteTensorDebugInfo(debug_info);
      TFE_DeleteTensorHandle(h);
      TFE_DeleteContext(ctx);
      TF_DeleteStatus(status);
    }
    
    TEST(CApiDebug, 2DCPU) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/dlpack_test.cc

      TFE_TensorHandle* handle = TFE_HandleFromDLPack(&dlm_in, status, ctx);
      ASSERT_NE(handle, nullptr)
          << TF_Message(status) << " (shape=[" << absl::StrJoin(shape, ",")
          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
          static_cast<DLManagedTensor*>(TFE_HandleToDLPack(handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4);
      cache1.Insert("a", 1);
      int value = 0;
      EXPECT_FALSE(cache1.Lookup("a", &value));
      // Now set max_age = 1 and verify the LRU eviction logic.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache2(1, 4);
      cache2.Insert("a", 1);
      cache2.Insert("b", 2);
      cache2.Insert("c", 3);
      cache2.Insert("d", 4);
      EXPECT_TRUE(cache2.Lookup("a", &value));
      EXPECT_EQ(value, 1);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental.cc

                               TF_DataType value) {
      auto iter = builder->attr_names.insert(attr_name).first;
      builder->Set(*iter, static_cast<tensorflow::DataType>(value));
    }
    
    void TF_AttrBuilderSetTypeList(TF_AttrBuilder* builder, const char* attr_name,
                                   const TF_DataType* values, int num_values) {
      auto iter = builder->attr_names.insert(attr_name).first;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

                                        " into function '", fn_name, "'");
    
        input_tensors->emplace_back(node, idx);
    
        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  9. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpSetAttrType(op, "dtype", TF_FLOAT);
      TFE_OpAddInput(op, var, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      int num_retvals = 1;
      TFE_Execute(op, out_value, &num_retvals, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteOp(op);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/checkpoint_reader.cc

            << entry.InitializationErrorString();
        for (int i = 0; i < entry.slices_size(); ++i) {
          const auto& slice_proto = entry.slices(i);
          CHECK(filtered_keys
                    .insert(EncodeTensorNameSlice(
                        string(v2_reader_->key()) /* full var's name */,
                        TensorSlice(slice_proto)))
                    .second);
        }
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
Back to top