Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 141 for created (0.08 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      auto launch = builder->create<tf_device::LaunchOp>(
          before_op->getLoc(), builder->getStringAttr(host_device),
          launch_result_types);
      launch.getBody().push_back(launch_block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<tf_device::ReturnOp>(before_op->getLoc(), launch_results);
    
      return launch;
    }
    
    // Creates a new_launch after `before_op` with `ops_to_move` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      // supported.
      const auto& device_list =
          devices.find(tensorflow::GetDeviceAliasForLogicalCore(0))->getSecond();
    
      // Create the state variable for each device.
      for (llvm::StringRef device : device_list) {
        state_vars.push_back(builder->create<TF::VarHandleOp>(
            loc,
            llvm::ArrayRef<Type>{RankedTensorType::get(
                {}, TF::ResourceType::get(llvm::ArrayRef<TensorType>{key_type},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        auto static_shape_attr =
            mlir::DenseIntElementsAttr::get(static_shape_type, static_shape);
        return rewriter.create<TF::ConstOp>(loc, static_shape_attr).getOutput();
      }
    
      // If the shape is not static, create a new ShapeOp.
      BoolAttr false_attr = rewriter.getBoolAttr(false);
      return rewriter
          .create<TF::ShapeOp>(loc, input,
                               /*use_32bit=*/false_attr)
          .getOutput();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

            return false;
          }
        }
        rewriter.setInsertionPointAfter(op);
        auto q = rewriter.create<quantfork::QuantizeCastOp>(op->getLoc(), cast_type,
                                                            op.getResult());
        auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(),
                                                               expressed_type, q);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/stream_executor/stream_executor.cc

        TF_RETURN_IF_ERROR(c_event->Create());
        return std::move(c_event);
      }
    
      absl::StatusOr<std::unique_ptr<Stream>> CreateStream(
          std::optional<std::variant<StreamPriority, int>> priority =
              std::nullopt) override {
        auto stream = std::make_unique<CStream>(&device_, stream_executor_, this);
        TF_RETURN_IF_ERROR(stream->Create());
        return std::move(stream);
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_launch_util_test.cc

      EXPECT_TRUE(xla::LiteralTestUtil::Equal(
          *literal1, xla::LiteralUtil::CreateR2<int32_t>({{1, 2, 3}})));
    
      std::shared_ptr<xla::Literal> literal2 = *exec_args[1]->ToLiteralSync();
      EXPECT_TRUE(xla::LiteralTestUtil::Equal(
          *literal2, xla::LiteralUtil::CreateR2<int32_t>({{4, 5, 6}})));
    }
    
    TEST_F(PjRtExecutionUtilTest, PreparePjRtExecutableArgumentsVariableInputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

        auto new_shape_const = rewriter.create<arith::ConstantOp>(
            weight_op->getLoc(), shape_spec_type, new_shape_const_attr);
        auto reshape_op = rewriter.create<TF::ReshapeOp>(
            weight_op->getLoc(), new_shape, weight_op->getResult(0),
            new_shape_const);
        op->setOperand(weight_operand_idx, reshape_op);
    
        // Create a new function with preprocessed types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

        rewriter.setInsertionPointAfter(preceding_sc_op);
        auto fcast_op = rewriter.create<TF::CastOp>(
            preceding_sc_op->getLoc(), dq_arg_type.clone(rewriter.getF32Type()),
            preceding_sc_op.getResult());
    
        // Create a new AvgPool op with float type.
        TF::AvgPoolOp float_avg_pool_op = rewriter.create<TF::AvgPoolOp>(
            avg_pool_op->getLoc(),
            avg_pool_op.getType().clone(rewriter.getF32Type()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        IntegerAttr zp_attr;
        if (!matchPattern(zp, m_Constant(&zp_attr))) {
          return failure();
        }
        rewriter.setInsertionPoint(zp.getDefiningOp());
        auto zp_tensor = rewriter.create<TF::ConstOp>(
            loc, RankedTensorType::get({}, zp.getType()), zp_attr);
        auto zp_cast = rewriter.create<CastOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      context.loadDialect<mlir::tf_device::TensorFlowDeviceDialect>();
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
      mlir::OpBuilder builder(module_ref->getBodyRegion());
    
      llvm::SmallVector<mlir::Type, 8> result_types;
      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          mlir::UnknownLoc::get(&context), result_types);
      cluster->setAttr(kNumCoresPerReplicaAttr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top