Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Signature (3.63 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

        const std::string& filename, int64_t file_signature) {
      absl::MutexLock lock(&mu_);
      auto it = file_signature_map_.find(filename);
      if (it != file_signature_map_.end()) {
        if (it->second == file_signature) {
          return true;
        }
        // Remove the file from cache if the signatures don't match.
        RemoveFile_Locked(filename);
        it->second = file_signature;
        return false;
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      CSession csession(session);
    
      // Retrieve the regression signature from meta graph def.
      const auto signature_def_map = metagraph_def.signature_def();
      const auto signature_def = signature_def_map.at("regress_x_to_y");
    
      const string input_name =
          signature_def.inputs().at(tensorflow::kRegressInputs).name();
      const string output_name =
          signature_def.outputs().at(tensorflow::kRegressOutputs).name();
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. tensorflow/c/eager/c_api_test.cc

        Name("TestCommUnavailable").Device(tensorflow::DEVICE_DEFAULT),
        TestUnavailableErrorOp);
    
    string FunctionWithErrorOp(const tensorflow::StringPiece op_name) {
      const std::string& func_str =
          "    signature {"
          "      name: 'FunctionWith__OP_NAME__'"
          "      output_arg {"
          "        name: 'out'"
          "        type: DT_STRING"
          "      }"
          "    }"
          "    node_def {"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

                   char* buffer, TF_Status* status);
    
      // Validate the given file signature with the existing file signature in the
      // cache. Returns true if the signature doesn't change or the file doesn't
      // exist before. If the signature changes, update the existing signature with
      // the new one and remove the file from cache.
      bool ValidateAndUpdateFileSignature(const std::string& filename,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function_test.cc

      ASSERT_EQ(func_->record->fdef().signature().attr().size(), 2);
      EXPECT_EQ(func_->record->fdef().signature().attr(0).name(), "v1");
      EXPECT_EQ(func_->record->fdef().signature().attr(0).type(), "int");
      EXPECT_EQ(func_->record->fdef().signature().attr(1).name(), "v2");
      EXPECT_EQ(func_->record->fdef().signature().attr(1).type(), "int");
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // Second read. Hit cache.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
      // Third read. File signatures are different.
      EXPECT_FALSE(cache.ValidateAndUpdateFileSignature(filename, 321));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 2);
    }
    
    TEST(RamFileBlockCacheTest, PassThrough) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_distributed_test.cc

      GraphErrorInjectionPass::enabled_ = false;
    }
    
    string VariableAddFunctionWithGraphError() {
      string signature = VariableAddFunctionSignature();
      // Replace the node 'read0' with 'read0_maybe_with_graph_error', so that the
      // error injecting pass can identify and introduce graph pass errors.
      signature = std::regex_replace(signature, std::regex("read0"),
                                     "read0_maybe_with_graph_error");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

      if (TF_GetCode(status) != TF_OK) return;
    
      tensorflow::GradientDef gdef;
      gdef.set_function_name(func->record->fdef().signature().name());
      gdef.set_gradient_func(grad->record->fdef().signature().name());
      status->status = g->graph.AddGradientDef(std::move(gdef));
    }
    
    int TF_GraphNumFunctions(TF_Graph* g) {
      tensorflow::mutex_lock l(g->mu);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  9. tensorflow/c/eager/abstract_context.h

      virtual Status RegisterFunction(AbstractFunction*) = 0;
      // Remove a function. 'func' argument is the name of a previously added
      // FunctionDef. The name is in fdef.signature.name.
      virtual Status RemoveFunction(const string& func) = 0;
    
     private:
      const AbstractContextKind kind_;
    };
    
    namespace internal {
    struct AbstractContextDeleter {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/dlpack.cc

          return tensorflow::errors::InvalidArgument("Unsupported Type Codes: ",
                                                     dtype.code);
      }
    }
    
    // Wraps the deleter function of DLManagedTensor to match the function signature
    // TFE_NewTensorHandleFromDeviceMemory.
    void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) {
      TFE_CallDLManagedTensorDeleter(dlmt_vptr);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top