Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for created (0.07 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

            tf_op->emitError("malformed opdef");
            return failure();
          }
          if (tf_op->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>()) {
            // Add derived "operand_segment_sizes" attr to the created operation.
            // TODO(b/146937733): Don't use <void> here.
            set_segment_sizes_attr(input_ranges, op_def->input_arg(),
                                   mlir::OpTrait::AttrSizedOperandSegments<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/pjrt_device_context.cc

      if (!buffer_or.ok()) {
        done(buffer_or.status());
        return;
      }
    
      xla::PjRtBuffer* pjrt_buffer = (*buffer_or).get();
      if (use_pjrt_tensor_buffer_) {
        // Copy the newly created tensor with PjRtTensorBuffer to output device
        // tensor.
        absl::StatusOr<Tensor> t = MakeTensorFromPjRtBuffer(
            device_tensor->dtype(), device_tensor->shape(), std::move(*buffer_or));
        if (!t.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:49:31 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      fetches.emplace_back(fetch_operand);
    
      auto builder = OpBuilder::atBlockTerminator(&main_graph_op.GetBody());
      builder.create<FetchOp>(main_graph_op.getLoc(), std::move(fetches));
    }
    
    // Creates a new Location for the initializer function. This creates a loc by
    // attaching a to the initializer function's type so that it is identifiable.
    Location CreateInitOpLoc(MLIRContext* ctx, func::FuncOp init_func_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      // Create return op for device computation region in the paralle_execute op
      Operation* after_op_r = builder.create<mlir::tf_device::ReturnOp>(
          new_device_cluster.getLoc(), device_results);
    
      builder.setInsertionPointToEnd(&parallel_execute_device_block);
    
      // Create return op for the new device cluster op
      builder.create<mlir::tf_device::ReturnOp>(device_cluster.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

      func_input_arg = block->getArgument(0);
      return quantization_func;
    }
    
    // Post-actions after adding quantization logics. Post-actions include
    // 1) Adding the created function in the symbol table
    // 2) Creating a PartitionedCallOp in the main graph that calls the created
    //    function.
    TF::PartitionedCallOp FinalizeFunctionRegister(
        PatternRewriter& rewriter, Value input, Value output,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      for (Operation* subgraph_op : llvm::reverse(reverse_subgraph)) {
        // Create a deep copy of the subgraph ops' operands to the func op.
        stablehlo_func_op.getBody().begin()->push_back(subgraph_op->clone(mapper));
      }
    
      SmallVector<Value> result_values;
      for (const Value original_output_value : outputs) {
        // Use the mapped values in the newly created function that correspond to
        // outputs in the original function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/unfreeze_constants.cc

            pm.addPass(mlir::quant::CreateUnfreezeConstantsPass());
          },
          ctx, module_op));
    
      if (const absl::Status create_dir_status =
              Env::Default()->CreateDir(std::string(checkpoint_dir));
          !create_dir_status.ok()) {
        LOG(ERROR) << "Failed to create checkpoint directory at: "
                   << checkpoint_dir;
        return create_dir_status;
      }
    
      TF_ASSIGN_OR_RETURN(const auto unused_variable_names,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 11:07:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

          // Create new ConstantOp-ConvertOp-Operation sequences. At this moment,
          // old ConstantOp is guaranteed to have one F32->F16 convert op regardless
          // of its number of users.
          rewriter.setInsertionPointAfter(op);
          // create new F16 constant op in that location
          ConstantOp new_const = rewriter.create<ConstantOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

        return {0, 2, 3, 1};
      } else {
        return {};
      }
    }
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    // `inner_size` allows to shuffle array attributes created from rank 2 tensors
    // on outer dimension only.
    ArrayAttr ShuffleArrayAttr(ArrayAttr attr, ArrayRef<int64_t> permutation,
                               int inner_size) {
      if (attr.empty()) return attr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

    constexpr char kXlaOutsideCompilationAttr[] = "_xla_outside_compilation";
    
    bool HasOutsideCompilationAttribute(Operation* op) {
      return op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr) != nullptr;
    }
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top