Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for validate_shape (0.27 sec)

  1. tensorflow/c/experimental/ops/resource_variable_ops.cc

      TF_RETURN_IF_ERROR(op_ptr->AddInput(resource));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(value));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("validate_shape", validate_shape));
      int num_retvals = 0;
      std::vector<AbstractTensorHandle*> dummy_outputs;
      return op_ptr->Execute(absl::MakeSpan(dummy_outputs), &num_retvals);
    }
    
    // Op: DestroyResourceOp()
    // Summary: Deletes the resource specified by the handle.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/convert_ref_variables.mlir

      %1 = "tf.Const"() {value = dense<0> : tensor<i32>} : () -> tensor<i32>
      %2 = "tf.Assign"(%0, %1) {T = i32, device = "", use_locking = true, validate_shape = true} : (tensor<!tf_type.int32ref>, tensor<i32>) -> tensor<!tf_type.int32ref>
      func.return
    }
    
    // CHECK-LABEL: @inference
    func.func @inference() -> tensor<i32> {
      // CHECK-NOT: tf.VariableV2
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_variables.td

      (TF_ReadVariableOp:$result $resource),
      (TFL_ReadVariableOp $resource),
      [(HasSupportedElementType $result)]>;
    
    def LegalizeAssignVariable : Pat<
      (TF_AssignVariableOp $resource, $value, $validate_shape),
      (TFL_AssignVariableOp $resource, $value),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 16 23:20:46 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_experimental.h

    // conditions are met:
    //   1. `validate_shape` is set to `true`
    //   2. The variable is initialized
    //   3. The shape of the value tensor doesn't match the shape of the variable
    //      tensor.
    TF_CAPI_EXPORT extern void TF_AssignVariable(
        TF_OpKernelContext* ctx, int input_index, int value_index,
        bool validate_shape,
        void (*copyFunc)(TF_OpKernelContext* ctx, TF_Tensor* source,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 07 14:44:39 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/resource_variable_ops.h

    Status AssignVariableOp(AbstractContext* ctx,
                            AbstractTensorHandle* const resource,
                            AbstractTensorHandle* const value,
                            bool validate_shape = false, const char* name = nullptr,
                            const char* raw_device_name = nullptr);
    
    // Deletes the resource specified by the handle.
    Status DestroyResourceOp(AbstractContext* ctx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/target.pbtxt

        key: "_class"
        value {
          list {
            s: "loc:@Variable"
          }
        }
      }
      attr {
        key: "use_locking"
        value {
          b: true
        }
      }
      attr {
        key: "validate_shape"
        value {
          b: true
        }
      }
    }
    node {
      name: "Variable/read"
      op: "Identity"
      input: "Variable"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 4.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tpu-resource-read-for-write.mlir

        "tf.AssignVariableOp"(%arg0, %3) <{validate_shape = false}> : (tensor<*x!tf_type.resource<tensor<1xf32>>>, tensor<1xf32>) -> ()
        tf_device.return
      }
      func.return
    }
    
    func.func private @write_chain_func(%arg0: tensor<1xf32>) -> (tensor<1xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/ifrt/sink_variable_as_named_array.mlir

        %0 = "tf.VarHandleOp"() <{container = "", shared_name = "Variable"}> : () -> tensor<!tf_type.resource<tensor<!tf_type.string>>>
        "tf.AssignVariableOp"(%0, %cst) <{validate_shape = false}> : (tensor<!tf_type.resource<tensor<!tf_type.string>>>, tensor<!tf_type.string>) -> ()
        %2 = "tf.ReadVariableOp"(%0) : (tensor<!tf_type.resource<tensor<!tf_type.string>>>) -> tensor<*x!tf_type.string>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 15:33:17 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/multi-output-feeds.pbtxt

        key: "_class"
        value {
          list {
            s: "loc:@var"
          }
        }
      }
      attr {
        key: "use_locking"
        value {
          b: true
        }
      }
      attr {
        key: "validate_shape"
        value {
          b: true
        }
      }
    }
    node {
      name: "var/read"
      op: "Identity"
      input: "var"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 6.2K bytes
    - Viewed (0)
Back to top