Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 263 for created (0.46 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

      FunctionType function_type =
          builder.getFunctionType(input_types, return_types);
    
      std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_);
    
      func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(),
                                                   function_name, function_type);
      new_func.setVisibility(func::FuncOp::Visibility::Private);
      new_func.addEntryBlock();
    
    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/tpu_partitioned_op_conversion.cc

      }
    
      if constexpr (is_input) {
        auto pi = builder.create<TF::TPUPartitionedInputV2Op>(
            op.getLoc(), op.getType(), op.getOperands(),
            builder.getI64ArrayAttr(partition_dims), builder.getBoolAttr(false),
            op.get_XlaShardingAttr());
        op->replaceAllUsesWith(pi);
      } else {
        auto po = builder.create<TF::TPUPartitionedOutputV2Op>(
            op.getLoc(), op.getResultTypes(), op.getOperand(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      if (!shaped_type) {
        return errors::Internal("Constant doesn't have a shape");
      }
      auto op = builder.create<tfl::ExternalConstOp>(
          loc, shaped_type, builder.getI32IntegerAttr(buffer_index));
      return op.getOperation();
    }
    
    // TODO(b/172664358): Creates a new op instead of reusing constant op.
    // Creates a constant op with "tfl.is_variable" attribute to represent stateful
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

        config.mutable_calibration_options()
            ->mutable_representative_datasets()
            ->Add(preset_datasets.begin(), preset_datasets.end());
      }
    
      // Create a new `QuantizationSpecs` to replace the existing one. The
      // expansion from `StaticRangePtqPreset` gets populated first and then
      // user-provided explicit `QuantizationSpec`s will be appended.
      QuantizationSpecs new_specs{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

                                        /*allow_partial_conversion=*/false);
    
      auto pass_instrumentors = mlir::GetPassInstrumentors();
      for (const auto& creator : pass_instrumentors) {
        tf2xla.addInstrumentation(creator());
      }
      if (DEBUG_DATA_DUMPER()->ShouldDump(module_name.str(), kDebugGroupMain) ||
          VLOG_IS_ON(1)) {
        tensorflow::DumpMlirOpToFile(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

        return convert(attr);
      }
      return nullptr;
    }
    
    DenseElementsAttr UniformQuantizedPerAxisValueConverter::convert(
        DenseFPElementsAttr attr) {
      // Creates the converter for each chunk. Normally the size of the
      // quantization dim is 3, so we can cache all the converters.
      ShapedType type = attr.getType();
      std::size_t dim_size = type.getDimSize(quantization_dim_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/gradient_checker.cc

      for (int i = 0; i < y_num; i++) {
        dy_datas[i] = Tensor(ys[i].type(), y_shapes[i]);
        auto dy_data_flat = dy_datas[i].flat<Y_T>();
        dy_data_flat.setZero();
      }
    
      // Create the feed list.
      ClientSession::FeedType feed_list;
      for (int i = 0; i < x_num; i++) {
        feed_list.insert({xs[i], x_datas[i]});
      }
      for (int i = 0; i < y_num; i++) {
        feed_list.insert({dys[i], dy_datas[i]});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top