Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for func (0.2 sec)

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

      value = -1;
    
      // Read our first value
      cache2.LookupOrCompute("a", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 0);
      EXPECT_EQ(num_compute_calls, 1);
      // Re-read, exepct no additional function compute_func calls.
      cache2.LookupOrCompute("a", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 0);
      EXPECT_EQ(num_compute_calls, 1);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental_test.cc

        func_args.push_back(TF_CreateAbstractTensorFromEagerTensor(input_eager, s));
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      }
    
      TF_OutputList* func_outputs = TF_NewOutputList();
      TF_OutputListSetNumOutputs(func_outputs, 2, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_ExecuteOperation(fn_op, func_args.size(), func_args.data(), func_outputs,
                          s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler_internal.h

     public:
      explicit CGraphOptimizer(TP_Optimizer optimizer, const char* device_type)
          : optimizer_(optimizer), device_type_(device_type) {
        if (optimizer.create_func != nullptr) {
          c_optimizer_ = (*optimizer_.create_func)();
        } else {
          c_optimizer_ = nullptr;
        }
      }
      std::string name() const override { return "PluggableGraphOptimizer"; }
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 08 08:58:23 GMT 2022
    - 3.5K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_remote_test_util.h

    // is not ready when we start running an op or a function.
    void TestRemoteExecuteSilentCopies(bool async, bool remote, bool func,
                                       bool heavy_load_on_streaming_rpc,
                                       bool remote_func_outputs = false,
                                       bool has_packed_input = false);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental.cc

    void TF_DeleteAbstractFunction(TF_AbstractFunction* func) {
      unwrap(func)->Unref();
    }
    
    void TF_ExecutionContextRegisterFunction(TF_ExecutionContext* ctx,
                                             TF_AbstractFunction* func,
                                             TF_Status* s) {
      tsl::Set_TF_Status_from_Status(s,
                                     unwrap(ctx)->RegisterFunction(unwrap(func)));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/graph_function.h

      absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord()
          override {
        return func_record_.GetNewRef();
      }
    
      // For LLVM style RTTI.
      static bool classof(const AbstractFunction* ptr) {
        return ptr->getKind() == kGraph;
      }
    
     private:
      core::RefCountPtr<FunctionRecord> func_record_;
    };
    }  // namespace graph
    }  // namespace tracing
    }  // namespace tensorflow
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

    // destructor. The easiest way to use MakeCleanup is with a lambda argument,
    // capturing the return value in an 'auto' local variable. Most users will not
    // need more sophisticated syntax than that.
    //
    // Example:
    //   void func() {
    //     FILE* fp = fopen("data.txt", "r");
    //     if (fp == nullptr) return;
    //     auto fp_cleaner = gtl::MakeCleanup([fp] { fclose(fp); });
    //     // No matter what, fclose(fp) will happen.
    //     DataObject d;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 11:16:00 GMT 2020
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.cc

    }
    
    void TF_SetAttrFuncName(TF_OperationDescription* desc, const char* attr_name,
                            const char* value, size_t length) {
      tensorflow::NameAttrList func_name;
      func_name.set_name(string(value, value + length));
      desc->node_builder.Attr(attr_name, func_name);
    }
    
    void TF_SetAttrShape(TF_OperationDescription* desc, const char* attr_name,
                         const int64_t* dims, int num_dims) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function.cc

      }
      const auto len = std::min(max_func, static_cast<int>(lib.function_size()));
      for (int i = 0; i < len; ++i) {
        TF_Function* func = new TF_Function();
        func->record = new tensorflow::FunctionRecord(lib.function(i), {}, false);
        funcs[i] = func;
      }
      status->status = absl::OkStatus();
      return len;
    }
    
    void TF_FunctionToFunctionDef(TF_Function* func, TF_Buffer* output_func_def,
    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)
  10. tensorflow/c/experimental/grappler/grappler_test.cc

      params->optimizer_configs->struct_size = TP_OPTIMIZER_CONFIGS_STRUCT_SIZE;
      params->optimizer->struct_size = TP_OPTIMIZER_STRUCT_SIZE;
      params->optimizer->create_func = nullptr;
      params->optimizer->optimize_func = optimize_func;
      params->optimizer->destroy_func = nullptr;
    }
    
    TEST(Grappler, SuccessfulRegistration) {
      auto plugin_init = [](TP_OptimizerRegistrationParams* const params,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top