Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 263 for created (0.09 sec)

  1. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

      TensorShape shape(shape_vector);
    
      // Create the variable.
      Status status;
      std::unique_ptr<Variable> var;
      TF_EXPECT_OK(Variable::CreateUninitialized(context(), dtype, shape,
                                                 absl::nullopt, nullptr, {}, &var));
    
      // Create a TensorHandle
      ImmediateTensorHandlePtr expected_handle =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

    std::optional<Value> MaterializeIllegalCast(OpBuilder &builder, Type type,
                                                ValueRange inputs, Location loc) {
      return builder.create<UnrealizedConversionCastOp>(loc, type, inputs)
          ->getResult(0);
    }
    
    class StablehloToOdmlTypeConverter : public vhlo::VhloTypeConverter {
     public:
      StablehloToOdmlTypeConverter() : vhlo::VhloTypeConverter() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      *library_expected.add_function() = FunctionDefHelper::Create(
          "F1", {"a_0_arg:float"}, {"c_0_retval:float"}, {},
          {
              {{"C"}, "UnaryTest", {"a_0_arg"}},
          },
          {{"c_0_retval", "C:o:0"}});
      *library_expected.add_function() = FunctionDefHelper::Create(
          "F2", {"b_0_arg:float", "c_0_arg:float"}, {"d_0_retval:float"}, {},
          {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_compilation_profiler.cc

        bool used_persistent_cache) {
      metrics::UpdateXlaCompilationTime(compile_time_us);
    
      const std::string& function_name = function.name();
    
      mutex_lock lock(mu_);
      // Create a stats entry if it doesn't already exist.
      auto it =
          cluster_compile_stats_.emplace(function.name(), ClusterCompileStats{})
              .first;
    
      const uint64 compile_time_s = compile_time_us / 1.0e6;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device_ops.cc

      core::RefCountPtr<Var> variable;
      const Tensor& value = context->input(1);
      // Note: every resource-variable-manipulating op assumes copy-on-write
      // semantics, and creates a copy of the variable's Tensor if its refcount is
      // bigger than 1 when we try to modify it. This means we never need to copy
      // the original tensor for AssignVariableOp; even if there are other live
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass() {
      return std::make_unique<CompositeLoweringPass>();
    }
    
    // Registers the pass implementation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc

      } else if (op_.NumOutputs() == 1) {
        RenderExecutionSingleOutput();
      } else {
        RenderExecutionMultipleOutputs();
      }
    }
    
    void OpImplementationRenderer::RenderInitialization() {
      // Create Op variable and initialize it
      Statement("AbstractOperationPtr $0(ctx->CreateOperation())",
                op_.VariableName());
      TFStatement(Call(op_.VariableName(), "Reset",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

    }
    
    FunctionDefLibrary CreateFunctionDefLibWithConstFunction(const string& name) {
      FunctionDefLibrary fdef_lib;
      FunctionDef func = FunctionDefHelper::Create(
          /*function_name=*/name, /*in_def=*/{}, /*out_def=*/{"out: float"},
          /*attr_def*/
          {}, /*node_def=*/{FunctionDefHelper::Const("one", 1.0f)},
          /*ret_def=*/{{"out", "out:output:0"}});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

                                                        bcast_dims);
        } else {
          return rewriter.notifyMatchFailure(bcast_op, "Unsupported element type.");
        }
        Value new_const_op =
            rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result);
        rewriter.replaceOp(bcast_op, {new_const_op});
        return success();
      }
    };
    
    using FoldBroadcastInDimBeforeMulOp =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_cpu_device.cc

      // context in tensorflow_accelerator_device_info(). Also,
      // tensorflow_accelerator_device_info() == nullptr is used as an IsCPU test.
      // We need XlaCpuDevice to be treated not as CPU because it allocates
      // XlaTensors, not regular Tensors.
      Status status = device->UseAcceleratorDeviceInfo();
      if (!status.ok()) {
        errors::AppendToMessage(&status, "while setting up ", DEVICE_GPU_XLA_JIT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top