Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for FunctionLibraryRuntime (0.27 sec)

  1. tensorflow/compiler/jit/xla_kernel_creator.cc

    namespace tensorflow {
    
    bool XlaKernelCreator::CanCreateKernel(
        const FunctionLibraryRuntime& flr,
        const std::shared_ptr<const NodeProperties>& props) const {
      return CanCreateXlaKernel(props->node_def) &&
             !XlaOpRegistry::IsCompilationDevice(flr.device()->device_type());
    }
    
    static Status CreateXlaKernel(FunctionLibraryRuntime* flr,
                                  const NodeDef& node_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_compiler_options_util.cc

              << ",detailed_logging=" << options.detailed_logging << "]";
    }
    }  // namespace
    
    XlaCompiler::Options GenerateCompilerOptions(
        const XlaDeviceCompiler& xla_device_compiler,
        const FunctionLibraryRuntime& function_library, DeviceBase* device,
        se::Stream* stream, const XlaPlatformInfo& platform_info,
        bool has_ref_vars) {
      XlaCompiler::Options options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_kernel_creator.h

    namespace tensorflow {
    
    class FunctionLibraryRuntime;
    class OpKernel;
    
    class XlaKernelCreator : public CustomKernelCreator {
     public:
      // Given a NodeDef 'node_def' and the function library runtime 'flr', returns
      // true if 'node_def' is a call to a compilable function defined in 'flr',
      // with the kXlaCompileAttr set.
      bool CanCreateKernel(
          const FunctionLibraryRuntime& flr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 26 19:43:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_platform_info.h

    // the persistor used in the DeviceCompiler. The platform ID from
    // `platform_info` must not be null in CPU case.
    Status BuildXlaDeviceCompiler(
        DeviceBase* dev, FunctionLibraryRuntime* flr,
        const XlaPlatformInfo& platform_info, DeviceType compilation_device_type,
        DeviceCompiler<xla::LocalExecutable, xla::LocalClient>**
            xla_device_compiler);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_compiler_options_util.h

        const DeviceCompiler<xla::LocalExecutable, xla::LocalClient>&
            xla_device_compiler,
        const FunctionLibraryRuntime& function_library);
    
    // Returns created options for XLA compiler when PjRt (Device API) is used for
    // compilation and execution.
    XlaCompiler::Options GenerateCompilerOptionsForPjRt(
        const FunctionLibraryRuntime& function_library,
        const DeviceBase* device_base, const XlaPlatformInfo& platform_info,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/extract_outside_compilation_pass.h

        const NameAttrList& func_name_attrs, const string& new_func_name,
        const string& host_graph_func_name,
        const std::map<string, int>& host_compute_core, FunctionLibraryRuntime* flr,
        FunctionLibraryDefinition* fld, std::vector<string>* shape_inference_graphs,
        bool* has_outside_compilation);
    
    // Rewrites XLA computation in `clusters` to replace outside compilation nodes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/pjrt_compile_util.h

    // computation.
    // - `flr`: the FunctionLibraryRuntime for the `function`.
    Status CompileToPjRtLoadedExecutable(
        const DeviceBase* device, const XlaPlatformInfo& platform_info,
        const NameAttrList& function,
        const std::vector<XlaCompiler::Argument>& args,
        DeviceCompileMode compile_mode, bool has_ref_vars,
        bool may_alias_resource_update, FunctionLibraryRuntime* flr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/test_util.h

          const std::vector<std::string>& device_names,
          const std::optional<FunctionDef>& fdef = std::nullopt);
      Device* GetDevice(const string& device_name);
      FunctionLibraryRuntime* flr() { return flr_; }
    
     private:
      FunctionLibraryRuntime* flr_;
      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<FunctionLibraryDefinition> lib_def_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/pjrt_compile_util.cc

        const NameAttrList& function,
        const std::vector<XlaCompiler::Argument>& args,
        DeviceCompileMode compile_mode, bool has_ref_vars,
        bool may_alias_resource_update, FunctionLibraryRuntime* flr,
        ResourceMgr* rm, const XlaCompiler::CompilationResult** compilation_result,
        xla::PjRtClient** client, xla::PjRtLoadedExecutable** executable) {
      PjRtDeviceCompiler* pjrt_device_compiler;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc

      OptimizerOptions opts;
      auto pflr = std::make_unique<ProcessFunctionLibraryRuntime>(
          nullptr, options.session_options->env, /*config=*/nullptr,
          TF_GRAPH_DEF_VERSION, options.flib_def, opts);
      FunctionLibraryRuntime* flr =
          pflr->GetFLR(ProcessFunctionLibraryRuntime::kDefaultFLRDevice);
    
      for (Node* node : graph->nodes()) {
        if (CanCreateXlaKernel(node->def())) {
          const FunctionBody* fbody = nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top