Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 184 for created (0.1 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        return builder_.create<mlir::tf_executor::SwitchOp>(loc, types, operands,
                                                            result.attributes);
      }
      if (node.IsMerge()) {
        return builder_.create<mlir::tf_executor::MergeOp>(loc, types, operands,
                                                           result.attributes);
      }
      if (node.IsNextIteration()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

        // Finally, use the quantization parameter to create the quantize and
        // dequantize ops, and insert them between the tf.FakeQuantWithMinMaxVarsOp
        // and its users.
        Value value = tf_op.getOutputs();
        auto quantize = rewriter.create<quantfork::QuantizeCastOp>(
            tf_op.getLoc(), qtype.getValue(), value);
        auto dequantize = rewriter.create<quantfork::DequantizeCastOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        llvm::SmallVector<Value, 2> new_operands;
        FilterOutBlockArgControlDep(op->getOperands().drop_front(), new_operands);
    
        auto source_op = builder.create<tf_executor::NextIterationSourceOp>(
            op->getLoc(), op->getOperand(0).getType());
        builder.create<tf_executor::NextIterationSinkOp>(
            op->getLoc(), source_op.getToken(), /*input=*/op->getOperand(0),
            /*controlInputs=*/new_operands);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

      // Create SessionInitializerOp; should reference main function.
      StringAttr func_name = main_func.getSymNameAttr();
      llvm::SmallVector<mlir::Attribute, 2> func_names = {
          mlir::SymbolRefAttr::get(builder.getContext(), func_name)};
      builder.create<tf_saved_model::SessionInitializerOp>(
          module->getLoc(), builder.getArrayAttr(func_names));
      // Create AssetOp; this holds the checkpoint_path.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

        indices[i] = dimension_numbers.start_index_map()[i];
      }
    
      // Fill elements from start_indices with start_index_map
      Value scattered_start_indices = builder.create<TF::TensorScatterUpdateOp>(
          loc, empty_start_indices,
          /*indices=*/
          builder.create<TF::ReshapeOp>(
              loc, RankedTensorType::get({index_map_size, 1}, builder.getI64Type()),
              Create1DConstValue<int64_t>(builder, loc, indices),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        Value new_reshape_shape_value = rewriter.create<arith::ConstantOp>(
            inner_reshape_op->getLoc(),
            GetI32ElementsAttr(new_reshape_shape_i32, &rewriter));
    
        auto new_inner_reshape_op = rewriter.create<TFL::ReshapeOp>(
            inner_reshape_op->getLoc(),
            inner_reshape_input, new_reshape_shape_value);
    
        // Create a new reshape_op to replace the old inner reshape_op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

      Type resultType = RankedTensorType::get(shape, element_type);
      auto constant_attr = DenseElementsAttr::get(shape_spec_type, shape);
      auto shape_tensor =
          rewriter.create<TF::ConstOp>(loc, shape_spec_type, constant_attr);
      return rewriter.create<TF::ReshapeOp>(loc, resultType, /*tensor=*/value,
                                            /*shape=*/shape_tensor);
    }
    
    template <typename BatchMatMulOpType>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      func->setAttr(kTFImplements, attr);
      OpBuilder builder(func.getBody());
      std::string empty_option_buffer;
      auto op = builder.create<CustomOp>(
          func.getLoc(), func.getFunctionType().getResults(), func.getArguments(),
          api, CustomOption(&builder, empty_option_buffer));
      builder.create<func::ReturnOp>(func.getLoc(), op.getResults());
      return success();
    }
    
    LogicalResult VerifyNgrams(func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc

    namespace stablehlo::quantization::io {
    
    absl::StatusOr<std::string> GetLocalTmpFileName(tsl::Env* const env) {
      std::string tmp_fname{};
      if (!env->LocalTempFilename(&tmp_fname)) {
        return absl::InternalError("Failed to create tmp file name.");
      }
    
      return tmp_fname;
    }
    
    absl::StatusOr<std::string> GetLocalTmpFileName() {
      return GetLocalTmpFileName(tsl::Env::Default());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

    // A test-only derived class of `tsl::Env` which is broken. Used to cause
    // failure for the `CreateTmpDir` function. Each of the overridden member
    // functions implements a dummy functionality just to be able to create an
    // instance of this class.
    class TestEnvBrokenFileSystem : public tsl::Env {
     public:
      TestEnvBrokenFileSystem() = default;
    
      bool MatchPath(const tsl::string& path, const tsl::string& pattern) override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top