Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for created (0.25 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      patterns->add<odml::ConvertCustomCallOp>(context);
      populateWithGenerated(*patterns);
    
      patterns->add<ConvertReduceOpToTFLiteArgmin, ConvertReduceOpToTFLiteArgmax>(
          context);
    }
    
    // Creates an instance of the pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHloToTfLitePass() {
      return std::make_unique<LegalizeHloToTfLitePass>();
    }
    
    // Registers the pass implementation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

            }
          }
    
          // Replace the arg with a tf.Const op in the function body.
          builder.setInsertionPointToStart(&func.getBody().front());
          auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(),
                                                      *global_tensor.getValue());
          args_to_erase.set(val.getArgNumber());
          for (auto read_op : read_variable_ops_to_erase) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/while_gradients.cc

      return strings::StrCat(forward_frame_name, "_backprop");
    }
    
    // Creates a loop that counts the number of iterations performed by the
    // while loop associated with `while_ctx`. The returned output yields the
    // iteration count.
    Status AddForwardLoopCounter(WhileContext* while_ctx, const Scope& scope,
                                 Output* count) {
      // Create while loop:
      //   i = 0
      //   while forward loop predicate is true:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc

          // Add dequantize.
          builder.setInsertionPointAfter(read_variable_op);
          auto new_read_variable_op =
              builder.create<ReadVariableOp>(read_variable_op.getLoc(), ref_qtype,
                                             read_variable_op.getResourceId());
          auto new_dq_op = builder.create<DequantizeOp>(
              read_variable_op.getLoc(), read_variable_op.getResult().getType(),
              new_read_variable_op.getResult());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc

      // available during compilation or compilation only device for on demand
      // execution which may create a recursion if used for constant folding.
      std::string host_cpu = tensorflow::DeviceNameUtils::FullName(
          /*job=*/"localhost", /*replica=*/0, /*task=*/0, /*type=*/"CPU", /*id=*/0);
    
      absl::StatusOr<OpKernelRunner> runner = OpKernelRunner::Create(
          node_def->get()->op(), node_def->get()->name(), host_cpu, operands.size(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc

        b.setInsertionPoint(op);
        if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) {
          auto dcast = b.create<quantfork::DequantizeCastOp>(
              dq.getLoc(), dq.getOutput().getType(), dq.getInput());
          dq.getOutput().replaceAllUsesWith(dcast);
          dq.erase();
        } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) {
          auto qcast = b.create<quantfork::QuantizeCastOp>(
              q.getLoc(), q.getOutput().getType(), q.getInput());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 02:50:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

      builder.setInsertionPoint(composite);
      if (IsKVCacheCompositeOp(composite)) {
        return builder.create<TFL::CustomOp>(
            composite->getLoc(), composite->getResultTypes(),
            composite->getOperands().slice(2, 3), composite.getName(),
            CustomOption(&builder, custom_option_buffer));
      }
      return builder.create<TFL::CustomOp>(
          composite->getLoc(), composite->getResultTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc

    namespace mlir {
    namespace odml {
    
    LogicalResult ConvertCustomCallOp::matchAndRewrite(
        mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor,
        ConversionPatternRewriter& rewriter) const {
      auto tfl_custom = rewriter.create<TFL::CustomOp>(
          mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(),
          mhlo_custom_call.getInputs());
      tfl_custom.setCustomCodeAttr(
          rewriter.getStringAttr(mhlo_custom_call.getCallTargetName()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc

        const llvm::SmallVector<int64_t>& expected_packed_shape,
        const llvm::SmallVector<int8_t>& expected_packed_values) {
      MLIRContext context;
      OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context)));
      OpBuilder builder(&module->getBodyRegion());
      context.loadDialect<TF::TensorFlowDialect>();
    
      Value value = CreateConstValue<int8_t>(builder, module->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/common/controller.cc

        CHECK(op_def != nullptr);  // Crash OK
    
        const ApiDef* api_def = api_def_map_->GetApiDef(op_name);
        CHECK(api_def != nullptr);  // Crash OK
    
        operators_.push_back(OpSpec::Create(*op_def, *api_def));
      }
    }
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top