Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 130 for created (0.1 sec)

  1. tensorflow/c/eager/gradients.cc

      void MarkAsResult(AbstractTensorHandle* gradient) const override;
    
      void DeleteGradient(AbstractTensorHandle* gradient) const override;
    
     private:
      // The context where the aggregation op `Add` is to be created.
      AbstractContext* ctx_;
    };
    
    // Returns the number of elements in the gradient tensor.
    int64_t TapeVSpace::NumElements(AbstractTensorHandle* tensor) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

      llvm::SmallVector<mlir::TF::SplitOp, 4> split_ops_for_tiled_input;
      split_ops_for_tiled_input.reserve(
          input_sharding.tile_assignment_devices_size());
    
      // Creates a tree of split nodes for sharding tiled inputs. Splits nodes
      // are created such that input data is sharded in row major order.
      // Split nodes at ith depth from the original input node represent nodes
      // that split the input data at i-th dimension.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      } else {
        return false;
      }
      return true;
    }
    
    // Create a dummy zero to be fed locally from the host to the TPUExecute.
    Value CreateZeroInput(Location loc, OpBuilder& builder, Attribute zero_attr,
                          DenseIntElementsAttr shape_attr) {
      ConstOp zero = builder.create<ConstOp>(loc, zero_attr);
      zero->setAttr(kICIWeightDistributionMlirBridgeMarker,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

      if (subtypes.size() != 1) {
        return std::nullopt;
      }
      return subtypes[0].getElementType();
    }
    
    // Create an `ConstBytesAttr` which encodes the options
    // for the `tf.custom` tensor list op to be created. If the given
    // op is not a `tf.TensorList*` op, return empty, although this case
    // should never be trigged in practice since patterns are only applied
    // on `tf.TensorList*` ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

      }
    
      auto dataset_while = builder.create<TF::WhileRegionOp>(
          reduce_dataset.getLoc(), while_input_types, /*input=*/while_input_values,
          /*parallel_iterations=*/10, false,
          /*shape_invariant=*/false);
    
      // `_lower_using_switch_merge` is the default for While ops created
      // in TensorFlow and allows lowering to V1 control flow for loop
      // parallelization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device_context.cc

            xla_tensor->AllocateShapedBuffer(device_tensor->dtype(), shape, client_,
                                             stream_->parent()->device_ordinal()));
    
        // The cpu_tensor and literal that we created here hold the data of host
        // tensor in descending layout. The layout could be different from layout in
        // device_tensor (but the logical shape has to be the same). The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/decompose.cc

              attr_cst =
                  builder.create<ConstOp>(op->getLoc(), output_type, attribute);
            } else {
              attr_cst = builder.create<mlir::arith::ConstantOp>(
                  op->getLoc(), cast<TypedAttr>(attribute));
            }
            new_operands.push_back(attr_cst);
          }
        }
    
        // Create the TFR call op
        auto new_op = builder.create<CallOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_tpu_device.cc

          absl::StrCat("device: ", DEVICE_TPU_SYSTEM, " device"));
      devices->push_back(std::make_unique<VirtualDevice>(options.env, attrs));
      VLOG(1) << "Created TPU_SYSTEM device. This host has " << device_count
              << " TPUs";
    
      return absl::OkStatus();
    }
    
    }  // namespace
    
    void RegisterTpuDeviceToDeviceCopy() {
      static auto* const register_tpu_tpu_copy = new CopyTensor::Registration(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    namespace mlir {
    namespace TF {
    
    namespace {
    
    // Creates ConstOp for int32_t value.
    ConstOp createI32ConstOp(int32_t value, Location loc,
                             PatternRewriter* rewriter) {
      auto int_attr = IntegerAttr::get(rewriter->getIntegerType(32), value);
      return rewriter->create<ConstOp>(loc, int_attr);
    }
    
    // Creates ConstantOp for array of int32_t.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. tensorflow/c/while_loop_test.cc

    }
    
    // This is a basic test to make sure the C++ gradient code can handle while
    // loops created by the C API (which calls the C++ API under the hood). There
    // are more while loop gradient tests in cc/framework/while_gradients_test.cc.
    TEST_F(CApiWhileLoopTest, Gradients) {
      Init(1);
    
      // Create loop: while (i < 10) i += 1
      TF_Operation* ten = ScalarConst(10, params_->cond_graph, s_);
      TF_Operation* less_than =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top