Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,105 for Levine (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    #define DEBUG_TYPE "tf-tpu-merge-variables-with-execute"
    
    namespace mlir {
    namespace TFTPU {
    
    namespace {
    constexpr char kAliasingAttr[] = "tf.aliasing_output";
    constexpr char kDeviceAttr[] = "device";
    constexpr char kFuncDeviceAttr[] = "tf.device";
    
    #define GEN_PASS_DEF_TPUMERGEVARIABLESWITHEXECUTEPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/grappler/grappler.h

    //
    //      // Set functions to create a new optimizer.
    //      params->optimizer->struct_size = TP_OPTIMIZER_STRUCT_SIZE;
    //      params->optimizer->create_func = (My_optimizer::create_func);
    //    }
    
    #define GO_MAJOR 0
    #define GO_MINOR 0
    #define GO_PATCH 1
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // TF_TriState is the C API typedef for tri-state.
    typedef enum TF_TriState {
      TF_TriState_Default = 0,
      TF_TriState_Off,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 03 18:08:43 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

          llvm::dyn_cast<tf_device::LaunchOp>(preprocess_op->getParentOp());
      // Device of original launch looked up before moving the preprocessing ops
      // around.
      StringAttr device =
          original_launch_op->getAttrOfType<StringAttr>(kDeviceAttr);
    
      if (!device) {
        return original_launch_op->emitOpError()
               << "Launch op has an invalid device attribute.";
      }
    
      // Find the TPUCompile successor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.h

    // Controls how to act when we try to run an operation on a given device but
    // some input tensors are not on that device.
    // LINT.IfChange
    // Note: Keep in sync with internal copy of enum in eager/context.h.
    typedef enum TFE_ContextDevicePlacementPolicy {
      // Running operations with input tensors on the wrong device will fail.
      TFE_DEVICE_PLACEMENT_EXPLICIT = 0,
      // Copy the tensor to the right device but log a warning.
      TFE_DEVICE_PLACEMENT_WARN = 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 22.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        return success();
      }
    };
    
    const char kDeviceAttr[] = "device";
    const char kDeviceGpu[] = "GPU";
    
    std::optional<std::string> GetDevice(mlir::Operation *op) {
      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
      const std::string device_name = device.str();
      tensorflow::DeviceNameUtils::ParsedName parsed_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/scope.h

      Scope WithNoControlDependencies() const;
    
      /// Return a new scope. All ops created within the returned scope will have
      /// the device field set to 'device'.
      Scope WithDevice(const string& device) const;
    
      /// Returns a new scope.  All ops created within the returned scope will have
      /// their assigned device set to `assigned_device`.
      Scope WithAssignedDevice(const string& assigned_device) const;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

    namespace TFTPU {
    
    namespace {
    
    constexpr char kDeviceAttr[] = "device";
    constexpr char kFuncDeviceAttr[] = "tf.device";
    constexpr char kDefaultShardingValue[] = "";
    constexpr char kMirroredVariableIndicesAttr[] = "_mirrored_variable_indices";
    
    std::string GetRandomStateVariableName() {
      return absl::StrCat("VariablesFormatState_", tensorflow::random::New64());
    }
    
    #define GEN_PASS_DEF_TPUVARIABLERUNTIMEREFORMATTINGPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        // TODO(jpienaar): Remove this later.
        if (auto device = res->getAttrOfType<StringAttr>("device")) {
          if (!device.getValue().empty())
            result_id->setAttr("device", device);
          else
            result_id->setAttr("device", compile_device_op);
        } else if (compile_device_op) {
          result_id->setAttr("device", compile_device_op);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/kernels/xla_ops.cc

                            XlaRunOp);
    REGISTER_KERNEL_BUILDER(
        Name("_XlaRun").Device(DEVICE_DEFAULT).HostMemory("key"), XlaRunOp);
    
    REGISTER_KERNEL_BUILDER(Name("_XlaMerge").Device(DEVICE_CPU), XlaMergeOp);
    REGISTER_KERNEL_BUILDER(Name("_XlaMerge").Device(DEVICE_GPU), XlaMergeOp);
    REGISTER_KERNEL_BUILDER(Name("_XlaMerge").Device(DEVICE_DEFAULT), XlaMergeOp);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

            return failure();
          }
          read_use.set(new_reads[0]);
        }
      }
      return success();
    }
    
    namespace {
    constexpr char kDeviceAttr[] = "device";
    constexpr char kFuncDeviceAttr[] = "tf.device";
    mlir::Attribute GetDeviceOfResource(mlir::func::FuncOp func,
                                        mlir::Value resource) {
      if (auto* resource_op = resource.getDefiningOp()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top