Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 80 for created (0.07 sec)

  1. tensorflow/compiler/mlir/lite/debug/debug_test.cc

              return registry;
            }()) {
        context_.loadAllAvailableDialects();
    
        mlir::OpBuilder builder(&context_);
        module_ = builder.create<mlir::ModuleOp>(builder.getUnknownLoc());
    
        builder.setInsertionPointToStart(module_->getBody());
        auto func = builder.create<mlir::func::FuncOp>(  //
            builder.getUnknownLoc(), "main", builder.getFunctionType({}, {}));
        func->setAttr("tfl.func", builder.getUnitAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

    namespace {
    
    // Helper class for parsing operands to a foldable operation.
    class FoldAdaptor {
     public:
      // Returns std::nullopt if the operation cannot be folded.
      static std::optional<FoldAdaptor> Create(Operation* operation) {
        auto foldable_opr = [](Value val) -> bool {
          return !llvm::isa<BlockArgument>(val) &&
                 llvm::isa<stablehlo::ConstantOp>(val.getDefiningOp());
        };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. 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)
  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/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)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_custom_call_to_composite.cc

          return op->emitError("expected exactly one called_computation");
    
        auto decomposition = mlir::cast<FlatSymbolRefAttr>(calledComputations[0]);
    
        auto composite = rewriter.create<mlir::stablehlo::CompositeOp>(
            op.getLoc(), op.getResultTypes(), op.getOperands(), name.str(), attrs,
            decomposition.getValue());
        rewriter.replaceOp(op, composite.getResults());
        return success();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

        // the resource, and we use it to just look up.
        // See core/kernels/data/iterator_ops.cc.)
        resource_op = builder.create<TF::IteratorOp>(
            op->getLoc(), resource.getType(), shared_name, container,
            it.getOutputTypes(), it.getOutputShapes());
      } else {
        resource_op = builder.create<TF::VarHandleOp>(
            op->getLoc(), resource.getType(), container, shared_name);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top