Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EagerContext (0.51 sec)

  1. tensorflow/compiler/jit/get_compiler_ir.h

    #include "tensorflow/compiler/tf2xla/xla_compiler.h"
    #include "tensorflow/core/platform/statusor.h"
    
    namespace tensorflow {
    
    class ProcessFunctionLibraryRuntime;
    class Device;
    class Tensor;
    class TensorHandle;
    class EagerContext;
    
    enum class IrExportStage {
      HLO,
      HLO_NO_METADATA,
      HLO_SERIALIZED,
      OPTIMIZED_HLO,
      OPTIMIZED_HLO_SERIALIZED,
      OPTIMIZED_HLO_PROTO_SERIALIZED,
      OPTIMIZED_HLO_DOT
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.cc

      LOG_FIRST_N(INFO, 1) << "Run Node Expansion Passes";
    
      // Get the FunctionDef and insert that into the context
      const NodeDef& ndef = orig_op->MutableAttrs()->BuildNodeDef();
      auto& ctx = orig_op->EagerContext();
      Fprint128 cache_key =
          orig_op->MutableAttrs()->CacheKey(orig_op->DeviceName());
      // Include soft placement policy in cache key since the placement strategy
      // can change and thus affect which kernel is picked.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

            options, "/job:localhost/replica:0/task:0", &devices));
        device_mgr_ = absl::make_unique<StaticDeviceMgr>(std::move(devices));
        ctx_ = testing::CreateTestingEagerContext(device_mgr_.get());
      }
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    };
    
    // Sanity check that constructing a tensorflow::Variable from a SavedVariable
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

      // Build an ExecutionContext from the HostContext.
      auto builder = RequestContextBuilder(host_context_.get(), &resource_context_);
    
      // Get tensorflow::EagerContext for the kernel fallback.
      auto* eager_context_resource =
          resource_context_
              .GetOrCreateResource<tensorflow::tfd::EagerContextResource>(
                  tensorflow::tfd::kEagerContextResourceName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top